blob: ffbea4487b208d49eb1bded0f44719cc11ca964e (
plain)
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
|
<div class=" w3-xlarge w3-hide-large" id="git-wiki-mobile-header">
<button class="w3-button w3-teal" onclick="sidebar_toggle()">☰</button>
<a href="{{ '/' | relative_url }}">
{% if site.logo_url %}
<img src="{{ site.logo_url | relative_url }}" width="20px">
{% endif %}
{{ site.title | escape }}
</a>
</div>
<header class="w3-sidebar w3-bar-block w3-collapse" id="git-wiki-sidebar">
<div>
<button class="w3-bar-item w3-button w3-large w3-hide-large" onclick="sidebar_toggle()">Close ×</button>
{% if site.inc_before_header %}
{% include {{ site.inc_before_header }} %}
{% endif %}
<div class="w3-hide-medium w3-hide-small">
{% if site.logo_url %}
{% include git-wiki/components/logo/logo.html %}
{% else %}
<h1>{{ site.title | escape }}</h1>
{% endif %}
</div>
{% if site.github.is_user_page %}
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
{% endif %}
{% if site.show_downloads %}
{% include git-wiki/components/action_btn/downloads.html %}
{% endif %}
{% if site.show_wiki_pages %}
{% include git-wiki/components/lists/page-list.html %}
{% endif %}
{% if site.blog_feature and site.show_wiki_posts %}
{% include git-wiki/components/lists/post-list.html %}
{% endif %}
{% if site.inc_after_header %}
{% include {{ site.inc_after_header }} %}
{% endif %}
</div>
</header>
<script>
function sidebar_toggle() {
var sidebar = document.getElementById("git-wiki-sidebar");
if (sidebar.style.display == "block") {
sidebar.style.display = "none";
sidebar.style.position = "inherit";
} else {
$(sidebar).attr('style', 'display: block;');
}
}
</script>
|