0001-montpellier-sync-theme.html-head-with-standard-theme.patch
static/montpellier/config.json | ||
---|---|---|
1 | 1 |
{ |
2 | 2 |
"label": "Montpellier", |
3 | 3 |
"variables": { |
4 |
"favicon": "montpellier/favicon.png", |
|
4 | 5 |
"theme_color": "#EA5B0C" |
5 | 6 |
} |
6 | 7 |
} |
templates/variants/montpellier/theme.html | ||
---|---|---|
1 | 1 |
<!DOCTYPE html> |
2 | 2 |
{% load gadjo i18n static %} |
3 |
<html> |
|
3 |
<html {% if LANGUAGE_CODE %}lang="{{ LANGUAGE_CODE }}"{% endif %} {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
|
|
4 | 4 |
<head> |
5 | 5 |
<meta charset="UTF-8"><!-- 🔥 --> |
6 | 6 |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
7 | 7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
8 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
9 |
<meta http-equiv="content-language" content="fr" /> |
|
10 | 8 |
<title>Compte Citoyen :: Montpellier Méditerranée Métropole :: {% block title %}{% endblock %}</title> |
11 |
<link rel="shortcut icon" href="{{ site_base }}{% static "montpellier/favicon.png" %}" />
|
|
9 |
{% if site_base %}<link rel="preconnect" href="{{ site_base }}">{% endif %}
|
|
12 | 10 |
{% if meta_robots %} |
13 | 11 |
<meta name="robots" content="{{ meta_robots }}" /> |
14 | 12 |
{% elif environment_label %} |
... | ... | |
16 | 14 |
{% endif %} |
17 | 15 |
{% block extra_top_head %} |
18 | 16 |
{% endblock %} |
19 |
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static 'montpellier/style.css' %}?{% start_timestamp %}"> |
|
17 |
{% if meta_description %} |
|
18 |
<meta name="description" content="{{ meta_description }}" /> |
|
19 |
{% endif %} |
|
20 |
{% if meta_keywords %} |
|
21 |
<meta name="keywords" content="{{ meta_keywords }}" /> |
|
22 |
{% endif %} |
|
23 |
{% block meta_icons %}{% endblock %} |
|
20 | 24 |
{% if theme_color %} |
21 | 25 |
<meta name="theme-color" content="{{theme_color}}"> |
22 | 26 |
<meta name="msapplication-navbutton-color" content="{{theme_color}}"> |
23 | 27 |
{% endif %} |
28 |
<meta name="apple-mobile-web-app-title" content="{{ pwa_settings.get_application_name }}"> |
|
29 |
<link rel="manifest" href="{{site_base}}/manifest.json"> |
|
30 |
{% if pwa_display == "standalone" %} |
|
31 |
<meta name="apple-mobile-web-app-capable" content="yes"> |
|
32 |
{% endif %} |
|
33 |
{% block extra_top_head %} |
|
34 |
{% endblock %} |
|
35 |
{{ media }} |
|
36 |
{% block css-variant %} |
|
37 |
{% if css_variant %} |
|
38 |
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "" %}{{css_variant}}/style.css?{% start_timestamp %}"> |
|
39 |
{% else %} |
|
40 |
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "style.css" %}?{% start_timestamp %}"> |
|
41 |
{% endif %} |
|
42 |
{% endblock %} |
|
24 | 43 |
{% block extra_css %} |
25 | 44 |
{% endblock %} |
26 | 45 |
{% block extra_scripts %} |
27 |
- |