-
Notifications
You must be signed in to change notification settings - Fork 11
/
baseof.html
80 lines (77 loc) · 2.21 KB
/
baseof.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
<!doctype html>
<html class="no-js" lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
{{ partial "header.html" . }}
<body>
{{ block "header" . }}
<header>
<nav class="nav-bar">
<!-- The title bar is used for small sizes. -->
<div class="title-bar flex-container" data-responsive-toggle="site-menu" data-hide-for="medium">
<!-- <button class="site-hamburger" type="button" data-toggle>
<i class="fa fa-bars fa-lg" aria-hidden="true"></i>
</button> -->
<!-- Made by Erik Terwan -->
<!-- 24th of November 2015 -->
<!-- MIT License -->
<nav role="navigation">
<div id="menuToggle">
<!--
A fake / hidden checkbox is used as click reciever,
so you can use the :checked selector on it.
-->
<input type="checkbox" />
<!--
Some spans to act as a hamburger.
-->
<span></span>
<span></span>
<span></span>
<ul id="menu" class="popout">
{{ $currentNode := . }}
{{ range .Site.Menus.main }}
<li><a href="{{.URL}}">{{ .Name }}</a></li>
{{ end }}
</ul>
</div>
</nav>
<!-- end -->
<div class="title-bar-title site-title">
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
</div>
<div class="title-bar float-right">
{{ block "title-bar-right" . }}
{{ end }}
</div>
</div>
<!-- The top bar is used for medium and up. -->
<div class="top-bar" id="site-menu" >
<div class="top-bar-title show-for-medium site-title">
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
</div>
<div class="top-bar-left">
<ul class="menu vertical medium-horizontal">
{{ $currentNode := . }}
{{ range .Site.Menus.main }}
<li><a href="{{.URL}}">{{ .Name }}</a></li>
{{ end }}
</ul>
</div>
<div class="top-bar-right show-for-medium" style="padding: 0.7rem 0.8rem; line-height: 1;">
{{ block "top-bar-right" . }}
{{ end }}
</div>
</div>
<!-- /div-->
</nav>
{{ end }}
</header>
{{ block "fullmain" . }}
<main>
{{ block "main" . }}
(add a main block to your template)
{{ end }}
</main>
{{ end }}
{{ partial "footer.html" . }}
</body>
</html>