diff options
author | tdro <tdro@noreply.example.com> | 2022-05-08 04:09:13 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-08 04:09:13 -0400 |
commit | 79c7ee98c184220132680fef344c0afba121cec0 (patch) | |
tree | 71d6bc6224b567b866acab3f1f333353221d4a60 /themes | |
parent | b1fcf57943a36b54a41948937b26777ba0a34365 (diff) | |
download | canory-79c7ee98c184220132680fef344c0afba121cec0.tar.gz canory-79c7ee98c184220132680fef344c0afba121cec0.tar.bz2 canory-79c7ee98c184220132680fef344c0afba121cec0.zip |
themes/default/layouts/partials/head-manifest: Base64 icons
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/partials/head-csp.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/partials/head-manifest.html | 11 |
2 files changed, 7 insertions, 8 deletions
diff --git a/themes/default/layouts/partials/head-csp.html b/themes/default/layouts/partials/head-csp.html index d148498..a369069 100644 --- a/themes/default/layouts/partials/head-csp.html +++ b/themes/default/layouts/partials/head-csp.html @@ -1,6 +1,6 @@ -{{- $upgrade := "" -}} +{{ $upgrade := "" }} -{{- if .Site.Params.csp.upgrade -}} +{{ if .Site.Params.csp.upgrade }} {{ $upgrade = "upgrade-insecure-requests;" }} {{- end -}} diff --git a/themes/default/layouts/partials/head-manifest.html b/themes/default/layouts/partials/head-manifest.html index 10aa1aa..6c154ed 100644 --- a/themes/default/layouts/partials/head-manifest.html +++ b/themes/default/layouts/partials/head-manifest.html @@ -4,13 +4,12 @@ {{- $icon16 := $icon.Fit "16x16" -}} {{- $appleTouchIcon := $icon.Fit "180x180" -}} -{{ $ico := $icon32.Content | resources.FromString "/favicon.ico" }} +{{- $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="icon" type="image/x-icon" href="data:image/ico;base64,{{ $icon32.Content | base64Encode }}"> +<link rel="icon" type="image/png" sizes="16x16" href="data:image/png;base64,{{ $icon16.Content | base64Encode }}"> +<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,{{ $icon32.Content | base64Encode }}"> +<link rel="apple-touch-icon" sizes="180x180" href="data:image/png;base64,{{ $appleTouchIcon.Content | base64Encode }}"> <link rel="manifest" href="{{ .Site.BaseURL }}/site.webmanifest"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="theme-color" content="#ffffff"> - |