diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-03 20:08:36 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-03 20:08:36 +0300 |
commit | 59c7d4567380d1a9c80e96eb958fdbdd512ce006 (patch) | |
tree | 65410cfc10dbc7d060ec23be110662d9b7f6b0e9 /themes/hugo-theme-stack/layouts/partials/head/head.html |
новая жизнь блога
Diffstat (limited to 'themes/hugo-theme-stack/layouts/partials/head/head.html')
-rw-r--r-- | themes/hugo-theme-stack/layouts/partials/head/head.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/themes/hugo-theme-stack/layouts/partials/head/head.html b/themes/hugo-theme-stack/layouts/partials/head/head.html new file mode 100644 index 0000000..a7991c1 --- /dev/null +++ b/themes/hugo-theme-stack/layouts/partials/head/head.html @@ -0,0 +1,26 @@ +<meta charset='utf-8'> +<meta name='viewport' content='width=device-width, initial-scale=1'> + +{{- $description := partialCached "data/description" . .RelPermalink -}} +<meta name='description' {{ printf "content=%q" $description | safeHTMLAttr }}> +{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }} + +{{- $title := partial "data/title" . -}} +<title>{{ $title }}</title> + +<link rel='canonical' href='{{ .Permalink }}'> + +{{- partial "head/style.html" . -}} +{{- partial "head/script.html" . -}} +{{- partial "head/opengraph/include.html" . -}} + +{{- range .AlternativeOutputFormats -}} + <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> +{{- end -}} + +{{ with .Site.Params.favicon }} + <link rel="shortcut icon" href="{{ . | relURL }}" /> +{{ end }} + +{{- template "_internal/google_analytics.html" . -}} +{{- partial "head/custom.html" . -}} |