blob: 4f70c4f8de06828292a709ac9040d5f02d07744b (
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
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
87
88
89
90
91
92
93
94
|
<nav class="navbar is-fresh is-transparent no-shadow" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<!-- <div class="navbar-start"> -->
<!-- <div class="columns"> -->
<a class="navbar-item">
<div class="menu-icon-wrapper left-menu-icon-wrapper" style="visibility: visible;">
<svg width="1000px" height="1000px">
<path class="path1" d="M 300 400 L 700 400 C 900 400 900 750 600 850 A 400 400 0 0 1 200 200 L 800 800"></path>
<path class="path2" d="M 300 500 L 700 500"></path>
<path class="path3" d="M 700 600 L 300 600 C 100 600 100 200 400 150 A 400 380 0 1 1 200 800 L 800 200"></path>
</svg>
<button id="menu-icon-trigger" class="menu-icon-trigger"></button>
</div>
<div class="navbar-item left-menu-icon-wrapper">
{{ i18n "tags" }}
</div>
</a>
<div class="navbar-item is-expanded"></div>
<a class="navbar-item is-hidden-desktop">
<div data-target="navbar-menu" class="navbar-item right-menu-icon-wrapper is-hidden-desktop">
{{ i18n "mainMenu" }}
</div>
<div data-target="navbar-menu" class="menu-icon-wrapper right-menu-icon-wrapper" style="visibility: visible;">
<svg width="1000px" height="1000px">
<path class="path1" d="M 300 400 L 700 400 C 900 400 900 750 600 850 A 400 400 0 0 1 200 200 L 800 800"></path>
<path class="path2" d="M 300 500 L 700 500"></path>
<path class="path3" d="M 700 600 L 300 600 C 100 600 100 200 400 150 A 400 380 0 1 1 200 800 L 800 200"></path>
</svg>
<button id="menu-icon-trigger" class="menu-icon-trigger"></button>
</div>
</a>
</div>
<div id="navbar-menu" class="navbar-menu is-static">
<!-- <div class="navbar-start"></div> -->
<div class="navbar-end">
{{- $home := .Site.Params.homepage.linkPosition -}}
{{/* {{- if or (eq $home "menu") (eq $home "menu+footer") -}} */}}
{{ if or (eq $home "menu") (eq $home "menu+footer") }}
<a href="{{ "/" | relLangURL }}" class="navbar-item is-secondary">
{{- if .Site.Params.homepage.linkText -}}
{{- print .Site.Params.homepage.linkText -}}
{{- else -}}
{{ i18n "homepage" }}
{{- end -}}
</a>
{{- end -}}
{{ range .Site.RegularPages }}
{{- if eq .Params.showInMenu true -}}
<a href="{{- .Permalink | relURL -}}" class="navbar-item is-secondary">
{{- .Title -}}
</a>
{{- end -}}
{{- end -}}
{{- range .Site.Sections -}}
{{- if not (eq .Title "singles") -}}
{{- $secCount := len .Sections -}}
{{- if (ne $secCount 0) }}
<div class="navbar-item has-dropdown is-hoverable">
<a href="{{- .Permalink | relURL -}}" class="navbar-link">
{{- .Title -}}
</a>
<div class="navbar-dropdown">
<!-- <a href="{{- .Permalink -}}" class="navbar-item">
> All
</a> -->
{{- range .Sections -}}
<a href="{{- .Permalink | relURL -}}" class="navbar-item">
{{- .Title -}}
</a>
{{- end -}}
</div>
</div>
{{- else -}}
<a href="{{- .Permalink | relURL -}}" class="navbar-item is-secondary">
{{- .Title -}}
</a>
{{- end -}}
{{- end -}}
{{- end -}}
</div>
</div>
</div>
</nav>
|