diff options
author | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
commit | e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6 (patch) | |
tree | 3667043819ab91065019dfe3b4ff83ad625c2b49 /themes/default/layouts/_default/index.webmanifest | |
download | canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.gz canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.bz2 canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.zip |
config.yaml: Commission
Diffstat (limited to 'themes/default/layouts/_default/index.webmanifest')
-rw-r--r-- | themes/default/layouts/_default/index.webmanifest | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/index.webmanifest b/themes/default/layouts/_default/index.webmanifest new file mode 100644 index 0000000..f7b3f66 --- /dev/null +++ b/themes/default/layouts/_default/index.webmanifest @@ -0,0 +1,24 @@ +{{- $icon := resources.Get .Site.Params.webmanifest.logo -}} + +{{- $androidChrome192 := $icon.Fit "192x192" -}} +{{- $androidChrome512 := $icon.Fit "512x512" -}} + +{ + "name": "{{ .Site.Params.webmanifest.name }}", + "short_name": "{{ .Site.Params.webmanifest.shortName }}", + "icons": [ + { + "src": "{{ $androidChrome192.Permalink }}", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "{{ $androidChrome512.Permalink }}", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "{{ .Site.Params.webmanifest.themeColor }}", + "background_color": "{{ .Site.Params.webmanifest.backgroundColor }}", + "display": "{{ .Site.Params.webmanifest.display }}" +} |