montpellier: sync theme.html head with standard theme, for PWA (#69623)

This commit is contained in:
Frédéric Péters 2022-09-27 16:21:40 +02:00
parent fa01f00512
commit 464b6dd0de
2 changed files with 25 additions and 5 deletions

View File

@ -1,6 +1,7 @@
{
"label": "Montpellier",
"variables": {
"favicon": "montpellier/favicon.png",
"theme_color": "#EA5B0C"
}
}

View File

@ -1,14 +1,12 @@
<!DOCTYPE html>
{% load gadjo i18n static %}
<html>
<html {% if LANGUAGE_CODE %}lang="{{ LANGUAGE_CODE }}"{% endif %} {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<meta charset="UTF-8"><!-- 🔥 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="fr" />
<title>Compte Citoyen :: Montpellier Méditerranée Métropole :: {% block title %}{% endblock %}</title>
<link rel="shortcut icon" href="{{ site_base }}{% static "montpellier/favicon.png" %}" />
{% if site_base %}<link rel="preconnect" href="{{ site_base }}">{% endif %}
{% if meta_robots %}
<meta name="robots" content="{{ meta_robots }}" />
{% elif environment_label %}
@ -16,11 +14,32 @@
{% endif %}
{% block extra_top_head %}
{% endblock %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static 'montpellier/style.css' %}?{% start_timestamp %}">
{% if meta_description %}
<meta name="description" content="{{ meta_description }}" />
{% endif %}
{% if meta_keywords %}
<meta name="keywords" content="{{ meta_keywords }}" />
{% endif %}
{% block meta_icons %}{% endblock %}
{% if theme_color %}
<meta name="theme-color" content="{{theme_color}}">
<meta name="msapplication-navbutton-color" content="{{theme_color}}">
{% endif %}
<meta name="apple-mobile-web-app-title" content="{{ pwa_settings.get_application_name }}">
<link rel="manifest" href="{{site_base}}/manifest.json">
{% if pwa_display == "standalone" %}
<meta name="apple-mobile-web-app-capable" content="yes">
{% endif %}
{% block extra_top_head %}
{% endblock %}
{{ media }}
{% block css-variant %}
{% if css_variant %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}{{css_variant}}/style.css?{% start_timestamp %}">
{% else %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "style.css" %}?{% start_timestamp %}">
{% endif %}
{% endblock %}
{% block extra_css %}
{% endblock %}
{% block extra_scripts %}