Skip to content

Commit c43d454

Browse files
authored
Update header.html
1 parent 4267f10 commit c43d454

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

overrides/partials/header.html

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{#-
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 -->
1313
<a href="/" title="OpenObserve Homepage" class="md-header__button md-logo" aria-label="OpenObserve Homepage" data-md-component="logo">
1414
{% include "partials/logo.html" %}
1515
</a>
@@ -18,58 +18,58 @@
1818
<a href="/docs" title="Docs Home" class="md-header__button" style="font-weight: bold; font-size: 1rem; padding-left: 0.5rem;">
1919
<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>
2020
</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>
4140
</div>
4241
</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 %}
4844
{% 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" %}
6846
{% 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" %}
7362
{% endif %}
7463
{% 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

Comments
 (0)