52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
|
{
|
||
|
"name": "{{site.Title}}",
|
||
|
"short_name": "{{site.Title}}",
|
||
|
"lang": "{{ site.LanguageCode | default `en-us` }}",
|
||
|
{{ with site.Params.variables.primary_color }}"theme_color": "{{.}}",{{ end }}
|
||
|
{{ with site.Params.variables.body_color }}"background_color": "{{.}}",{{ end }}
|
||
|
|
||
|
{{ $icon:= site.Params.favicon }}
|
||
|
{{ if fileExists (add `assets/` $icon) }}
|
||
|
{{ $icon:= resources.Get $icon }}
|
||
|
{{ $icon_48:= $icon.Resize "48x png" }}
|
||
|
{{ $icon_72:= $icon.Resize "72x png" }}
|
||
|
{{ $icon_96:= $icon.Resize "96x png" }}
|
||
|
{{ $icon_144:= $icon.Resize "144x png" }}
|
||
|
{{ $icon_192:= $icon.Resize "192x png" }}
|
||
|
{{ $icon_512:= $icon.Resize "512x png" }}
|
||
|
"icons": [
|
||
|
{
|
||
|
"src": "{{$icon_48.RelPermalink}}",
|
||
|
"sizes": "48x48",
|
||
|
"type": "image/png"
|
||
|
},
|
||
|
{
|
||
|
"src": "{{$icon_72.RelPermalink}}",
|
||
|
"sizes": "72x72",
|
||
|
"type": "image/png"
|
||
|
},
|
||
|
{
|
||
|
"src": "{{$icon_96.RelPermalink}}",
|
||
|
"sizes": "96x96",
|
||
|
"type": "image/png"
|
||
|
},
|
||
|
{
|
||
|
"src": "{{$icon_144.RelPermalink}}",
|
||
|
"sizes": "144x144",
|
||
|
"type": "image/png"
|
||
|
},
|
||
|
{
|
||
|
"src": "{{$icon_192.RelPermalink}}",
|
||
|
"sizes": "192x192",
|
||
|
"type": "image/png"
|
||
|
},
|
||
|
{
|
||
|
"src": "{{$icon_512.RelPermalink}}",
|
||
|
"sizes": "512x512",
|
||
|
"type": "image/png"
|
||
|
}
|
||
|
],
|
||
|
{{ end }}
|
||
|
"display": "standalone",
|
||
|
"start_url": "{{ site.BaseURL | relLangURL }}?utm_source=web_app_manifest"
|
||
|
}
|