mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-14 02:48:28 +00:00
407c5d72df
Before, `.Site.Params.Manifest` was required to activate Web App Manifest. Now, it's optional. Still, `.Site.Params.Manifest` highly recommended. * Don't require .Site.Params.Manifest * Order Web App Manifest properties by required type (except icons) * Add default value to startUrl param [`/`] * README.md: enhance Web App Manifest configuration section * README.md: add table with Web App Manifest default values in Binario
29 lines
921 B
JSON
29 lines
921 B
JSON
{
|
|
"name": "{{ .Site.Params.Manifest.name | default .Site.Title }}",
|
|
"short_name": "{{ .Site.Params.Manifest.shortName | default .Site.Title }}",
|
|
"display": "{{ .Site.Params.Manifest.display | default "browser" }}",
|
|
"start_url": "{{ .Site.Params.Manifest.startUrl | default "/" }}",
|
|
"background_color": "{{ .Site.Params.Manifest.backgroundColor | default "#2a2a2a" }}",
|
|
"theme_color": "{{ .Site.Params.Manifest.themeColor | default "#1b1b1b" }}",
|
|
{{- with .Site.Params.Manifest.description }}
|
|
"description": "{{ . }}",
|
|
{{- end }}
|
|
{{- with .Site.Params.Manifest.orientation }}
|
|
"orientation": "{{ . }}",
|
|
{{- end }}
|
|
{{- with .Site.Params.Manifest.scope }}
|
|
"scope": "{{ . }}",
|
|
{{- end }}
|
|
"icons": [
|
|
{
|
|
"src": "icons/192.png",
|
|
"sizes": "192x192",
|
|
"type": "image/png"
|
|
},
|
|
{
|
|
"src": "icons/512.png",
|
|
"sizes": "512x512",
|
|
"type": "image/png"
|
|
}
|
|
]
|
|
}
|