-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
layout.html
81 lines (75 loc) · 1.99 KB
/
layout.html
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
{% 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'),
'de': _('German'),
'fa': _('Persian'),
'id': _('Indonesian'),
'ja': _('Japanese'),
'ko_KR': _('Korean'),
'nl': _('Dutch'),
'ro': _('Romanian'),
'ru': _('Russian'),
'zh_CN': _('Chinese (China)'),
'zh_TW': _('Chinese (Taiwan)')
}
%}
{% set lizmap_locales_label = {
'fr': 'Français',
'en': 'English',
'es': 'Español',
'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': 'Русский',
'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 %}
{% if lizmap_versions.stable_version != version -%}
<link href="{{ lizmap_path_to_root }}../../{{ lizmap_versions.stable_version}}" rel="canonical"/>
{% endif %}
{% endblock %}
{% block bodyheader %}
<div class="globalnav globalhead">
<a class="siteNav" href="{{ pathto(master_doc) }}" >
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" />
<span class="siteNavTitle">
Documentation
</span>
</a>
{% include "languageswitch.html" %}
</div>
{% 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 %}