added webmanifest support

This commit is contained in:
2024-07-09 08:38:38 +02:00
committed by Flo Greistorfer
parent 6ef4c6ddf3
commit 14b8cc5fe6
12 changed files with 357 additions and 311 deletions

View File

@@ -5,6 +5,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
{%- if webmanifest %}
<link rel="manifest" href="/manifest.json">
{%- endif %}
<link rel="icon" type="image/x-icon" href="{{ favicon }}">
<link rel="stylesheet" href="{{ stylesheet }}">
{%- if theme %}

View File

@@ -0,0 +1,19 @@
{
"name": "{{ name }}",
"icons": [
{% for icon in icons -%}
{
"src": "{{ icon.src }}",
"sizes": "{{ icon.sizes }}",
"type": "{{ icon.type }}",
"purpose": "maskable"
}{% if not loop.last %},{% endif %}
{%- endfor %}
],
"id": "{{ id }}",
"start_url": "/",
"background_color": "{{ background_color }}",
"display": "standalone",
"scope": "/",
"theme_color": "{{ theme_color }}"
}