blob: 7259b43ec90d0ba07fd020974c12c157007e43e3 (
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
|
{{- $href := or .Href "#" -}}
{{- $id := or .Id "top" -}}
{{- $label := title $id -}}
{{- $icon := readFile (print (partial "function-paths.html").static "/icons/feather/arrow-up.svg") -}}
{{- $refresh := readFile (print (partial "function-paths.html").static "/icons/feather/refresh-cw.svg") -}}
{{- with .Icon -}}
{{- $icon = readFile (print (partial "function-paths.html").static "/icons/feather/" . ".svg") -}}
{{- end -}}
{{- with .IconLabel -}}
{{- $label = . -}}
{{- end -}}
<nav>
<icon-button>
<a
data-update=""
id="{{ $id }}"
href="{{ $href }}"
target="_self"
>
{{ safeHTML $icon }}
{{ safeHTML $refresh }}
<small>{{ $label }}</small>
<small>Update</small>
</a>
</icon-button>
<section>
{{ with .Title }}
<h2>{{ . }}</h2>
{{ end }}
{{ with .Subtitle }}
<small>{{ . }}</small>
{{ end }}
</section>
{{ if .Context.Site.Menus.main }}
{{ range .Context.Site.Menus.main }}
<icon-navigator hidden="">
<icon-button>
<a id="nav-middle-{{ path.Base .Identifier }}" href="{{ .URL | absURL }}">
{{ with .Identifier }}
{{ $icon := print (partial "function-paths.html").static "/icons/" . ".svg" }}
{{ safeHTML (readFile $icon) }}
{{ end }}
<small>{{ delimit (first 1 (split .Name " ")) " " }}</small>
</a>
</icon-button>
</icon-navigator>
{{ end }}
{{ end }}
<search-box>
<form role="search" action="https://lite.duckduckgo.com/lite/">
<input
aria-autocomplete="list"
aria-label="search input"
autocomplete="off"
id="search"
name="q"
required=""
spellcheck="false"
type="search"
value=""
/>
<button type="submit">
{{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/search.svg")) }}
<small>Search</small>
</button>
<ul hidden=""></ul>
</form>
</search-box>
</nav>
|