mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
added webmanifest support
This commit is contained in:
@@ -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 %}
|
||||
|
||||
19
templates/manifest.json.j2
Normal file
19
templates/manifest.json.j2
Normal 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 }}"
|
||||
}
|
||||
Reference in New Issue
Block a user