diff options
author | tdro <tdro@noreply.example.com> | 2022-05-07 04:19:22 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-07 04:19:22 -0400 |
commit | e9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a (patch) | |
tree | b8b9c390a70b3cc0c47ad324019a51764ac20861 /themes/default/layouts/partials/head-manifest.html | |
parent | f721601e676a752a76757f449242b876dbecb1d0 (diff) | |
download | canory-e9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a.tar.gz canory-e9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a.tar.bz2 canory-e9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a.zip |
config.yaml: Add search engine verification
Diffstat (limited to 'themes/default/layouts/partials/head-manifest.html')
-rw-r--r-- | themes/default/layouts/partials/head-manifest.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/head-manifest.html b/themes/default/layouts/partials/head-manifest.html new file mode 100644 index 0000000..10aa1aa --- /dev/null +++ b/themes/default/layouts/partials/head-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 | absURL }}"> +<link rel="icon" type="image/png" sizes="16x16" href="{{ $icon16.RelPermalink | absURL }}"> +<link rel="icon" type="image/png" sizes="32x32" href="{{ $icon32.RelPermalink | absURL }}"> +<link rel="apple-touch-icon" sizes="180x180" href="{{ $appleTouchIcon.RelPermalink | absURL }}"> +<link rel="manifest" href="{{ .Site.BaseURL }}/site.webmanifest"> +<meta name="msapplication-TileColor" content="#da532c"> +<meta name="theme-color" content="#ffffff"> + |