added web app manifest

This commit is contained in:
Gabriele Musco 2021-12-21 10:31:52 +01:00
parent 7607cf97e7
commit 6c16f5afa9
No known key found for this signature in database
GPG key ID: 0587A5D65B5DC99E
4 changed files with 42 additions and 2 deletions

View file

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
"name": "{{ .Site.Title }}",
"short_name": "{{ .Site.Title }}",
"start_url": "/",
"display": "standalone",
"background_color": "{{ .Site.Params.backgroundColor | default "#242629" }}",
"theme_color": "{{ .Site.Params.accentColor | default "#db5793" }}"
{{ if .Site.Params.description }}
,
"description": "{{ .Site.Params.description }}"
{{ end }}
{{ if .Site.Params.icon512 }}
,
"icons": [
{
"src": "{{ .Site.Params.icon512 }}",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "{{ .Site.Params.icon512 }}",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
}
]
{{ end }}
}