Files
hugo-theme-stack/layouts/_partials/head/head.html
T

33 lines
1.1 KiB
HTML
Raw Normal View History

2020-09-26 23:00:48 +02:00
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
2020-09-11 22:50:30 +02:00
2020-09-26 23:00:48 +02:00
{{- $description := partialCached "data/description" . .RelPermalink -}}
<meta name='description' {{ printf "content=%q" $description | safeHTMLAttr }}>
{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }}
2020-08-22 13:20:08 +02:00
{{- $title := partial "data/title" . -}}
2020-09-26 23:00:48 +02:00
<title>{{ $title }}</title>
{{ with .Params.canonicalUrl }}
<link rel="canonical" href="{{ . }}">
{{ else }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
2020-09-26 23:00:48 +02:00
{{- partial "head/custom-font.html" . -}}
2020-09-26 23:00:48 +02:00
{{- 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 -}}
{{- $favicon := partial "helper/image" (dict "Image" .Site.Params.favicon "Resources" resources) -}}
{{ with $favicon }}
<link rel="shortcut icon" href="{{ .Permalink }}" />
{{ end }}
{{- partial "google_analytics.html" . -}}
2021-02-11 12:56:39 -05:00
{{- partial "head/custom.html" . -}}