blob: a37150613a48237ade3c30dd80cbc47f4a3fca57 (
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
|
{{ $id := .Id }}
{{ $href := .Href }}
<nav>
<icon-button>
<a
id="{{ or $id "top" }}"
href="{{ or $href "#" }}"
>
{{ with .Icon }}
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/" . ".svg")) }}
{{ else }}
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-up.svg")) }}
{{ end }}
{{ with .IconLabel }}
<small>{{ . }}</small>
{{ else }}
<small>Top</small>
{{ end }}
</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-entry id="search-frame">
<form
id="search-form"
action="https://lite.duckduckgo.com/lite/">
<input required
id="search-input"
name="q"
value=""
type="search"
autocomplete="off"
spellcheck="false"
aria-autocomplete="list"
aria-label="search input"
/>
<button id="search-submit">
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/search.svg")) }}
<small>Search</small>
</button>
<ul hidden id="search-results"></ul>
</form>
</search-entry>
</nav>
<navigation-separator><hr hidden></navigation-separator>
|