aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/manifest.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/manifest.html')
-rw-r--r--themes/default/layouts/partials/manifest.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/manifest.html b/themes/default/layouts/partials/manifest.html
new file mode 100644
index 0000000..4bd935a
--- /dev/null
+++ b/themes/default/layouts/partials/manifest.html
@@ -0,0 +1,16 @@
+{{- $icon := resources.Get .Site.Params.webmanifest.logo -}}
+
+{{- $icon32 := $icon.Fit "32x32" -}}
+{{- $icon16 := $icon.Fit "16x16" -}}
+{{- $appleTouchIcon := $icon.Fit "180x180" -}}
+
+{{ $ico := $icon32.Content | resources.FromString "/favicon.ico" }}
+
+<link rel="icon" href="{{ $ico.RelPermalink | relURL }}">
+<link rel="icon" type="image/png" sizes="16x16" href="{{ $icon16.RelPermalink | relURL }}">
+<link rel="icon" type="image/png" sizes="32x32" href="{{ $icon32.RelPermalink | relURL }}">
+<link rel="apple-touch-icon" sizes="180x180" href="{{ $appleTouchIcon.RelPermalink | relURL }}">
+<link rel="manifest" href="/site.webmanifest">
+<meta name="msapplication-TileColor" content="#da532c">
+<meta name="theme-color" content="#ffffff">
+