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

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

<meta property="og:type" content="website">

<link rel="manifest" href="/manifest.webmanifest">
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Let's Worship!" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

<title>
    {{ if .IsHome}}
    {{ site.Title }}
    {{ else }}
    {{ .Title }}
    {{ end }}
</title>

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

<script>

if ('serviceWorker' in navigator) {

navigator.serviceWorker.register('/sw.js');

};

</script>


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