36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
{% load static thumbnail %}{
|
|
"name": "{% firstof global_title "Compte Citoyen" %}",
|
|
"short_name": "{% firstof global_title "Compte Citoyen" %}",
|
|
"start_url": "{% firstof pwa_start_url "/" %}",
|
|
{% if theme_color %}
|
|
"background_color": "{{ theme_color }}",
|
|
"theme_color": "{{ theme_color }}",
|
|
{% endif %}
|
|
{% block icons %}
|
|
"icons": [
|
|
{% if pwa_settings.application_icon %}
|
|
{% for icon_size in pwa_settings.APPLICATION_ICON_SIZES %}
|
|
{
|
|
"sizes": "{{ icon_size }}",
|
|
{% thumbnail pwa_settings.application_icon icon_size crop='center' format='PNG' as im %}
|
|
"src": "{{ site_base }}{{ im.url }}",
|
|
{% endthumbnail %}
|
|
"type": "image/png"
|
|
}{% if not forloop.last %},{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
{% for icon_size in icon_sizes %}
|
|
{
|
|
"sizes": "{{ icon_size }}x{{ icon_size }}",
|
|
"src": "{{ site_base }}{% static "" %}{{ css_variant }}/{{ icon_prefix }}{{ icon_size }}px.png",
|
|
"type": "image/png"
|
|
}{% if not forloop.last %},{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
],
|
|
{% endblock %}
|
|
{% block extra %}
|
|
{% endblock %}
|
|
"display": "{% firstof pwa_display "browser" %}"
|
|
}
|