diff options
| author | leiyu3 <s444814187@gmail.com> | 2025-07-17 16:05:51 -0400 |
|---|---|---|
| committer | leiyu3 <s444814187@gmail.com> | 2025-07-17 16:05:51 -0400 |
| commit | 3fb613d92481883b2751a6f5b882796a355008bd (patch) | |
| tree | 7a77bc6dd75efb3af58a0e0f34e652f15dc39b11 /layouts/partials/head.html | |
| parent | 410b700036782b10ce5b5a7324a9c2b2c16fb286 (diff) | |
| download | letsworship-3fb613d92481883b2751a6f5b882796a355008bd.tar.gz letsworship-3fb613d92481883b2751a6f5b882796a355008bd.zip | |
convert to pwa
Diffstat (limited to 'layouts/partials/head.html')
| -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 |
