blob: 55a207735e7a0cfb2ecd959498c9e91a697e9702 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="generator" content="Hugo">
<meta name="generator" content="Tastefejl">
{{/* Head start hook */}}
{{ partial "functions/get_hook.html" (dict "hook" "head_start" "context" .) }}
{{ $faviconPath := (.Site.Params.faviconPath | default "" | absURL) }}
{{ $faviconIco := urls.JoinPath $faviconPath "favicon.ico" }}
{{ if fileExists $faviconIco }}
<link rel="icon" type="image/ico" href="{{ urls.JoinPath $faviconPath "favicon.ico" }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ urls.JoinPath $faviconPath "favicon-16x16.png" }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ urls.JoinPath $faviconPath "favicon-32x32.png" }}">
<link rel="icon" type="image/png" sizes="192x192" href="{{ urls.JoinPath $faviconPath "android-chrome-192x192.png" }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ urls.JoinPath $faviconPath "apple-touch-icon.png" }}">
{{ end }}
{{- define "outputFormats" -}}
{{- range .OutputFormats }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{- end }}
{{- end -}}
{{ if .IsHome -}}
{{ with .Site.GetPage (site.Params.homeCollection | default "") -}}
{{ template "outputFormats" . }}
{{ end }}
{{ else -}}
{{ template "outputFormats" . }}
{{ with .Parent -}}
{{ template "outputFormats" . }}
{{- end }}
{{- end }}
{{- if .IsHome -}}
<meta name="description" content="{{ site.Params.Description }}"/>
{{- else -}}
<meta name="description" content="{{ .Params.Description }}"/>
{{- end }}
{{ if .Param "fediverse" }}
<meta name="fediverse:creator" content="{{ .Params.Fediverse }}">
{{ end }}
<title>
{{ if .IsHome }}
{{ site.Title }}
{{ else }}
{{ printf "%s | %s" .Title site.Title }}
{{ end }}
</title>
<link rel="canonical" href="{{ .Permalink }}"/>
{{ template "partials/opengraph.html" . }}
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
{{ if hugo.IsProduction }}
{{ template "_internal/google_analytics.html" . }}
{{ if .Site.Params.umami.enable }}
{{ partial "umami.html" . }}
{{ end }}
{{ end }}
{{/* Head end hook */}}
{{ partial "functions/get_hook.html" (dict "hook" "head_end" "context" .) }}
|