diff options
Diffstat (limited to 'themes/default/layouts/partials/navigator-middle.html')
-rw-r--r-- | themes/default/layouts/partials/navigator-middle.html | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/themes/default/layouts/partials/navigator-middle.html b/themes/default/layouts/partials/navigator-middle.html index 46c4060..688963a 100644 --- a/themes/default/layouts/partials/navigator-middle.html +++ b/themes/default/layouts/partials/navigator-middle.html @@ -1,22 +1,28 @@ -{{ $id := .Id }} -{{ $href := .Href }} +{{- $id := .Id -}} +{{- $href := .Href -}} +{{- $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") -}} +{{- $label := "Top" -}} + +{{- 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="{{ 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 }} + {{ safeHTML $icon }} + {{ safeHTML $refresh }} + <small>{{ $label }}</small> + <small>Refresh</small> </a> </icon-button> @@ -48,7 +54,8 @@ <search-entry id="search-frame"> <form id="search-form" - action="https://lite.duckduckgo.com/lite/"> + action="https://lite.duckduckgo.com/lite/" + > <input required id="search-input" name="q" @@ -68,4 +75,6 @@ </search-entry> </nav> -<navigation-separator><hr hidden></navigation-separator> +<navigation-separator> + <hr hidden /> +</navigation-separator> |