mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
17 lines
No EOL
1,004 B
HTML
17 lines
No EOL
1,004 B
HTML
|
|
<meta charset="utf-8">
|
|
{{- $c:=""}}{{/* to avoid that user swiping to the left leaves a gap on the right side, we set minimum-scale, even if not advised to */}}
|
|
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
|
{{- $gen := hugo.Generator }}
|
|
{{- $gen = replaceRE "\\s*/>$" ">" $gen }}
|
|
{{ $gen | safeHTML }}
|
|
{{- $ver := partial "version.txt" }}
|
|
{{- $ver := printf "<meta name=\"generator\" content=\"%s %s\">" "Relearn" $ver }}
|
|
{{ $ver | safeHTML }}
|
|
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
|
|
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
|
|
{{- end }}
|
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
|
|
{{- with .Site.Params.author }}
|
|
<meta name="author" content="{{ . }}">
|
|
{{- end }} |