More security docs and other minor improvements

This commit is contained in:
2022-06-20 14:21:19 +00:00
parent c66a1cbf9a
commit 10dca2972d
7 changed files with 39 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
<meta property='og:url' content='{{ site.BaseURL }}' />
<meta property='og:site_name' content='{{ site.Title }}' />
<!-- <meta property='og:image' content=''> -->
{{ hugo.Generator }}
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel='%s' type='%s' href='%s' title='%s' />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

View File

@@ -1,6 +1,6 @@
{{ if .IsTranslated }}<h6>{{ T "translations" }}:</h6>
<ul>{{ range .Translations }}
<li>
<a href='{{ .RelPermalink }}'>{{ .Language.LanguageName }}: {{ .Title }}{{ if .IsPage }} ({{ i18n "wordCount" . }}){{ end }}</a>
<a href='{{ .RelPermalink }}'>{{ .Language.LanguageName }}: {{ .Title }}</a>
</li>{{ end }}
</ul>{{ end }}

View File

@@ -0,0 +1,5 @@
<div class='block'>
{{ range (after 1 (split .Inner "\n")) }}
<p>{{ markdownify . }}</p>
{{ end }}
</div>

View File

@@ -5,6 +5,6 @@
{{ $content := .Inner }}
{{ $in := split .Inner "\n" }}
{{ if gt (len $in) 1 }}
{{ $content = (delimit (after 1 $in) "\n") }}
{{ $content = (delimit (after 2 $in) "\n") }}
{{ end }}
{{ transform.Highlight (htmlUnescape $content) (.Get 0) (delimit $opts ",") }}