1
1
{#-
2
- This file was automatically generated - do not edit
3
- -#}
4
- {% set class = "md-header" %}
5
- {% if "navigation.tabs.sticky" in features %}
6
- {% set class = class ~ " md-header--shadow md-header--lifted" %}
7
- {% elif "navigation.tabs" not in features %}
8
- {% set class = class ~ " md-header--shadow" %}
9
- {% endif %}
10
- < header class ="{{ class }} " data-md-component ="header ">
11
- < nav class ="md-header__inner md-grid " aria-label ="{{ lang.t('header') }} ">
12
- <!-- Logo linking to main site -->
2
+ This file was automatically generated - do not edit
3
+ -#}
4
+ {% set class = "md-header" %}
5
+ {% if "navigation.tabs.sticky" in features %}
6
+ {% set class = class ~ " md-header--shadow md-header--lifted" %}
7
+ {% elif "navigation.tabs" not in features %}
8
+ {% set class = class ~ " md-header--shadow" %}
9
+ {% endif %}
10
+ < header class ="{{ class }} " data-md-component ="header ">
11
+ < nav class ="md-header__inner md-grid " aria-label ="{{ lang.t('header') }} ">
12
+ <!-- Logo linking to main site -->
13
13
< a href ="/ " title ="OpenObserve Homepage " class ="md-header__button md-logo " aria-label ="OpenObserve Homepage " data-md-component ="logo ">
14
14
{% include "partials/logo.html" %}
15
15
</ a >
18
18
< a href ="/docs " title ="Docs Home " class ="md-header__button " style ="font-weight: bold; font-size: 1rem; padding-left: 0.5rem; ">
19
19
< svg xmlns ="http://www.w3.org/2000/svg " height ="24px " viewBox ="0 -960 960 960 " width ="24px " fill ="currentColor "> < path d ="M320-440h320v-80H320v80Zm0 120h320v-80H320v80Zm0 120h200v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z "/> </ svg >
20
20
</ a >
21
- < label class ="md-header__button md-icon " for ="__drawer ">
22
- {% set icon = config.theme.icon.menu or "material/menu" %}
23
- {% include ".icons/" ~ icon ~ ".svg" %}
24
- </ label >
25
- < div class ="md-header__title " data-md-component ="header-title ">
26
- < div class ="md-header__ellipsis ">
27
- < div class ="md-header__topic ">
28
- < span class ="md-ellipsis ">
29
- {{ config.site_name }}
30
- </ span >
31
- </ div >
32
- < div class ="md-header__topic " data-md-component ="header-topic ">
33
- < span class ="md-ellipsis ">
34
- {% if page.meta and page.meta.title %}
35
- {{ page.meta.title }}
36
- {% else %}
37
- {{ page.title }}
38
- {% endif %}
39
- </ span >
40
- </ div >
21
+ < label class ="md-header__button md-icon " for ="__drawer ">
22
+ {% set icon = config.theme.icon.menu or "material/menu" %}
23
+ {% include ".icons/" ~ icon ~ ".svg" %}
24
+ </ label >
25
+ < div class ="md-header__title " data-md-component ="header-title ">
26
+ < div class ="md-header__ellipsis ">
27
+ < div class ="md-header__topic ">
28
+ < span class ="md-ellipsis ">
29
+ {{ config.site_name }}
30
+ </ span >
31
+ </ div >
32
+ < div class ="md-header__topic " data-md-component ="header-topic ">
33
+ < span class ="md-ellipsis ">
34
+ {% if page.meta and page.meta.title %}
35
+ {{ page.meta.title }}
36
+ {% else %}
37
+ {{ page.title }}
38
+ {% endif %}
39
+ </ span >
41
40
</ div >
42
41
</ div >
43
- {% if config.theme.palette %}
44
- {% if not config.theme.palette is mapping %}
45
- {% include "partials/palette.html" %}
46
- {% endif %}
47
- {% endif %}
42
+ </ div >
43
+ {% if config.theme.palette %}
48
44
{% if not config.theme.palette is mapping %}
49
- {% include "partials/javascripts/palette.html" %}
50
- {% endif %}
51
- {% if config.extra.alternate %}
52
- {% include "partials/alternate.html" %}
53
- {% endif %}
54
- {% if "material/search" in config.plugins %}
55
- {% set search = config.plugins["material/search"] | attr("config") %}
56
- {% if search.enabled %}
57
- < label class ="md-header__button md-icon " for ="__search ">
58
- {% set icon = config.theme.icon.search or "material/magnify" %}
59
- {% include ".icons/" ~ icon ~ ".svg" %}
60
- </ label >
61
- {% include "partials/search.html" %}
62
- {% endif %}
63
- {% endif %}
64
- {% if config.repo_url %}
65
- < div class ="md-header__source ">
66
- {% include "partials/source.html" %}
67
- </ div >
45
+ {% include "partials/palette.html" %}
68
46
{% endif %}
69
- </ nav >
70
- {% if "navigation.tabs.sticky" in features %}
71
- {% if "navigation.tabs" in features %}
72
- {% include "partials/tabs.html" %}
47
+ {% endif %}
48
+ {% if not config.theme.palette is mapping %}
49
+ {% include "partials/javascripts/palette.html" %}
50
+ {% endif %}
51
+ {% if config.extra.alternate %}
52
+ {% include "partials/alternate.html" %}
53
+ {% endif %}
54
+ {% if "material/search" in config.plugins %}
55
+ {% set search = config.plugins["material/search"] | attr("config") %}
56
+ {% if search.enabled %}
57
+ < label class ="md-header__button md-icon " for ="__search ">
58
+ {% set icon = config.theme.icon.search or "material/magnify" %}
59
+ {% include ".icons/" ~ icon ~ ".svg" %}
60
+ </ label >
61
+ {% include "partials/search.html" %}
73
62
{% endif %}
74
63
{% endif %}
75
- </ header >
64
+ {% if config.repo_url %}
65
+ < div class ="md-header__source ">
66
+ {% include "partials/source.html" %}
67
+ </ div >
68
+ {% endif %}
69
+ </ nav >
70
+ {% if "navigation.tabs.sticky" in features %}
71
+ {% if "navigation.tabs" in features %}
72
+ {% include "partials/tabs.html" %}
73
+ {% endif %}
74
+ {% endif %}
75
+ </ header >
0 commit comments