1
+ <!--
2
+ Copyright (c) 2016-2024 Martin Donath <[email protected] >
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to
6
+ deal in the Software without restriction, including without limitation the
7
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
+ sell copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20
+ IN THE SOFTWARE.
21
+ -->
22
+
23
+ <!-- Determine classes -->
24
+ {% set class = "md-header" %}
25
+ {% if "navigation.tabs.sticky" in features %}
26
+ {% set class = class ~ " md-header--shadow md-header--lifted" %}
27
+ {% elif "navigation.tabs" not in features %}
28
+ {% set class = class ~ " md-header--shadow" %}
29
+ {% endif %}
30
+
31
+ <!-- Header -->
32
+ < header class ="{{ class }} " data-md-component ="header ">
33
+
34
+ <!-- Super Nav -->
35
+ < div class ="superNav ">
36
+ < div class ="md-header__inner md-grid ">
37
+ < a href ="https://docs.percona.com/percona-for-mysql/ " title ="Percona Documentation home page ">
38
+ < svg width ="24 " height ="24 " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 ">
39
+ < mask id ="a " style ="mask-type:alpha " maskUnits ="userSpaceOnUse " x ="0 " y ="0 " width ="24 " height ="24 ">
40
+ < path d ="M0 0h24v24H0z "/>
41
+ </ mask >
42
+ < g mask ="url(#a) ">
43
+ < path d ="m7.825 13 5.6 5.6L12 20l-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825Z "/>
44
+ </ g >
45
+ </ svg >
46
+ < span > Percona Software for PostgreSQL Documentation</ span >
47
+ </ a >
48
+ </ div >
49
+ </ div >
50
+
51
+ < nav
52
+ class ="md-header__inner md-grid "
53
+ aria-label ="{{ lang.t('header') }} "
54
+ >
55
+
56
+ <!-- Link to home -->
57
+ < a
58
+ href ="{{ config.extra.homepage | d(nav.homepage.url, true) | url }} "
59
+ title ="{{ config.site_name | e }} "
60
+ class ="md-header__button md-logo "
61
+ aria-label ="{{ config.site_name }} "
62
+ data-md-component ="logo "
63
+ >
64
+ {% include "partials/logo.html" %}
65
+ </ a >
66
+
67
+ <!-- Button to open drawer -->
68
+ < label class ="md-header__button md-icon " for ="__drawer ">
69
+ {% set icon = config.theme.icon.menu or "material/menu" %}
70
+ {% include ".icons/" ~ icon ~ ".svg" %}
71
+ </ label >
72
+
73
+ <!-- Header title -->
74
+ < div class ="md-header__title ">
75
+ < div class ="md-header__ellipsis ">
76
+ < a href ="{{ config.extra.homepage | d(nav.homepage.url, true) | url }} " class ="md-header__topic ">
77
+ < span class ="md-ellipsis ">
78
+ {{ config.site_name }}
79
+ </ span >
80
+ </ a >
81
+ < div class ="md-header__topic " data-md-component ="header-topic ">
82
+ < span class ="md-ellipsis ">
83
+ {% if page.meta and page.meta.title %}
84
+ {{ page.meta.title }}
85
+ {% else %}
86
+ {{ page.title }}
87
+ {% endif %}
88
+ </ span >
89
+ </ div >
90
+ </ div >
91
+ </ div >
92
+
93
+ <!-- Color palette toggle -->
94
+ {% if config.theme.palette %}
95
+ {% if not config.theme.palette is mapping %}
96
+ {% include "partials/palette.html" %}
97
+ {% endif %}
98
+ {% endif %}
99
+
100
+ <!-- User preference: color palette -->
101
+ {% if not config.theme.palette is mapping %}
102
+ {% include "partials/javascripts/palette.html" %}
103
+ {% endif %}
104
+
105
+ <!-- Site language selector -->
106
+ {% if config.extra.alternate %}
107
+ {% include "partials/alternate.html" %}
108
+ {% endif %}
109
+
110
+ <!-- Button to open search modal -->
111
+ {% if "material/search" in config.plugins %}
112
+ < label class ="md-header__button md-icon " for ="__search ">
113
+ {% set icon = config.theme.icon.search or "material/magnify" %}
114
+ {% include ".icons/" ~ icon ~ ".svg" %}
115
+ </ label >
116
+
117
+ <!-- Search interface -->
118
+ {% include "partials/search.html" %}
119
+ {% endif %}
120
+
121
+ <!-- Repository information -->
122
+ {% if config.repo_url %}
123
+ < div class ="md-header__source ">
124
+ {% include "partials/source.html" %}
125
+ </ div >
126
+ {% endif %}
127
+ </ nav >
128
+
129
+ <!-- Navigation tabs (sticky) -->
130
+ {% if "navigation.tabs.sticky" in features %}
131
+ {% if "navigation.tabs" in features %}
132
+ {% include "partials/tabs.html" %}
133
+ {% endif %}
134
+ {% endif %}
135
+ </ header >
0 commit comments