-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathheader.html
86 lines (86 loc) · 2.68 KB
/
header.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
82
83
84
85
86
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid">
<div class="md-flex navheader">
<div class="md-flex__cell md-flex__cell--shrink">
<a
href="{{ pathto(master_doc)|e }}"
title="{{ docstitle|e }}"
class="md-header-nav__button md-logo"
>
{% if theme_logo_icon|e %}
<i class="md-icon">{{ theme_logo_icon }}</i>
{% elif logo %}
<img
src="{{ pathto('_static/' ~ logo, 1) }}"
height="26"
alt="{{ shorttitle|striptags|e }} logo"
/>
{% else %} {% endif %}
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label
class="md-icon md-icon--menu md-header-nav__button"
for="__drawer"
></label>
</div>
<div class="md-flex__cell md-flex__cell--stretch">
<div
class="md-flex__ellipsis md-header-nav__title"
data-md-component="title"
>
<span class="md-header-nav__topic"
>{{ theme_nav_title or shorttitle }}</span
>
<span class="md-header-nav__topic"> {{ title|striptags|e }} </span>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label
class="md-icon md-icon--search md-header-nav__button"
for="__search"
></label>
{% include "searchbox.html" %}
</div>
{% if theme_repo_url %}
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
{% if theme_repo_type %}
<div class="md-source__icon">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 24 24"
width="28"
height="28"
>
<use
xlink:href="#__{{ theme_repo_type }}"
width="24"
height="24"
></use>
</svg>
</div>
{% endif %}
<div class="md-source__repository">
<a
href="{{ theme_repo_url }}"
title="Go to repository"
class="md-source__repo"
>
{{ theme_repo_name }}
</a>
<a
href="{{ theme_repo_url }}/edit/main/{{ pagename }}{{ page_source_suffix }}"
title="Edit this page on GitHub"
class="md-source__edit"
>
Edit on GitHub
</a>
</div>
</div>
</div>
{% endif %} {% include "version_dropdown.html" %}
</div>
</nav>
</header>