summaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
blob: 482d7e9ec24b1543de59b4508d080b0f679cb331 (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
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">

{{ with .OutputFormats.Get "rss" -}}
  {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}

{{- if .IsHome -}}
<meta name="description" content="{{ site.Params.Description }}" />
{{- else -}}
<meta name="description" content="{{ .Params.Description }}" />
{{- end }}

<title>
    {{ if .IsHome }}
    {{ site.Title }}
    {{ else }}
    {{ printf "%s | %s" .Title site.Title }}
    {{ end }}
</title>

<link rel="canonical" href="{{ .Permalink }}" />

{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

{{ if hugo.IsProduction }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}

{{ if .Site.Params.umami.enable }}
  {{ partial "umami.html" . }}
{{ end }}