diff options
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/head.html | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 60b1dc2..24d9d52 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html | |||
| @@ -9,17 +9,33 @@ | |||
| 9 | 9 | ||
| 10 | <meta property="og:type" content="website"> | 10 | <meta property="og:type" content="website"> |
| 11 | 11 | ||
| 12 | <link rel="manifest" href="/manifest.webmanifest"> | ||
| 13 | <meta name="mobile-web-app-capable" content="yes" /> | ||
| 14 | <meta name="apple-mobile-web-app-title" content="Let's Worship!" /> | ||
| 15 | <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | ||
| 16 | |||
| 12 | <title> | 17 | <title> |
| 13 | {{ if .IsHome}} | 18 | {{ if .IsHome}} |
| 14 | {{ site.Title }} | 19 | {{ site.Title }} |
| 15 | {{ else }} | 20 | {{ else }} |
| 16 | {{ printf "%s | %s" .Title site.Title }} | 21 | {{ .Title }} |
| 17 | {{ end }} | 22 | {{ end }} |
| 18 | </title> | 23 | </title> |
| 19 | 24 | ||
| 20 | {{ partialCached "head/css.html" . }} | 25 | {{ partialCached "head/css.html" . }} |
| 21 | {{ partialCached "head/js.html" . }} | 26 | {{ partialCached "head/js.html" . }} |
| 22 | 27 | ||
| 28 | <script> | ||
| 29 | |||
| 30 | if ('serviceWorker' in navigator) { | ||
| 31 | |||
| 32 | navigator.serviceWorker.register('/sw.js'); | ||
| 33 | |||
| 34 | }; | ||
| 35 | |||
| 36 | </script> | ||
| 37 | |||
| 38 | |||
| 23 | {{ if hugo.IsProduction }} | 39 | {{ if hugo.IsProduction }} |
| 24 | {{ template "_internal/google_analytics.html" . }} | 40 | {{ template "_internal/google_analytics.html" . }} |
| 25 | {{ end }} \ No newline at end of file | 41 | {{ end }} \ No newline at end of file |
