blob: f7b3f66ca4b1bb71fbe2553acd45fad60fe8402e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 }}"
}
|