-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathlayout.html
More file actions
112 lines (103 loc) · 3.03 KB
/
layout.html
File metadata and controls
112 lines (103 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{% extends "!layout.html" %}
{% set lizmap_locales_name = {
'fr': _('French'),
'en': _('English'),
'es': _('Spanish'),
'it': _('Italian'),
'pt': _('Portuguese'),
'fi': _('Finnish'),
'ca_ES': _('Catalan'),
'da_DK': _('Danish'),
'cs': _('Czech'),
'de': _('German'),
'fa': _('Persian'),
'id': _('Indonesian'),
'ja': _('Japanese'),
'ko_KR': _('Korean'),
'nl': _('Dutch'),
'ro': _('Romanian'),
'ru': _('Russian'),
'uk_UA': _('Ukrainian'),
'zh_CN': _('Chinese (China)'),
'zh_TW': _('Chinese (Taiwan)')
}
%}
{% set lizmap_locales_label = {
'fr': 'Français',
'en': 'English',
'es': 'Español',
'cs': 'Czech',
'it': 'Italiano',
'pt': 'Português',
'fi': 'Suomalainen',
'ca_ES': 'Catalan',
'da_DK': 'Dansk',
'de': 'Deutsch',
'fa': 'فارسی',
'id': 'Bahasa Indonesia',
'ja': '日本語',
'ko_KR': '한국어',
'nl': 'Nederlands',
'ro': 'Română',
'ru': 'Русский',
'uk_UA': 'українська',
'zh_CN': '中文',
'zh_TW': _('Chinese (Taiwan)')
}
%}
{% set lizmap_locales = lizmap_versions.locales[version] %}
{% set lizmap_path_to_root = pathto('index')|replace('index.html','')|replace('#','') %}
{% block extrahead %}
{% for lang in lizmap_locales -%}
{% if language != lang -%}
<link href="{{ lizmap_path_to_root }}../{{ lang }}/" rel="alternate" hreflang="{{ lang }}"/>
{% endif %}
{%- endfor %}
<link href="https://docs.lizmap.com/current/{{ language }}/" rel="canonical"/>
{%- if outdated %}
<meta name="robots" content="noindex,follow">
{%- endif %}
{% if plausible_url and plausible_domain %}
<script defer data-domain="{{ plausible_domain }}" src="{{ plausible_url }}"></script>
<script>
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) };
plausible(
'language',
{
props:{
language:navigator.language.toString().substr(0,2).toLowerCase(),
"language-requested":"{{ language }}",
version:"{{ version }}",
outdated:"{{ outdated }}"
}
}
);
</script>
{% endif %}
{% endblock %}
{% block extrabody %}
<div class="globalnav globalhead">
<a class="siteNav" href="{{ pathto(master_doc) }}" >
<img src="{{ pathto('_static/' + 'logo.png', 1) }}" class="logo" />
<span class="siteNavTitle">
Documentation
</span>
</a>
{% include "languageswitch.html" %}
</div>
{%- if outdated %}
<div class="row outdated">
{{ _('This documentation is for a Lizmap Web Client version that has reached its end of life. Instead, visit the ') }}
<a href="https://docs.lizmap.com/current/{{ language }}/{{ pagename }}.html">{{ _('latest version') }}</a>.
</div>
{%- endif %}
{% endblock %}
{% block sidebartitle %}
<a class="sideTitle" href="{{ pathto(master_doc) }}" style="color:black">
LIZMAP
</a>
<div class="version" style="color:black">
{{ version }}
</div>
{% include "searchbox.html" %}
{% endblock %}