diff options
Diffstat (limited to 'themes/default/layouts/partials/navigator-middle.html')
-rw-r--r-- | themes/default/layouts/partials/navigator-middle.html | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/themes/default/layouts/partials/navigator-middle.html b/themes/default/layouts/partials/navigator-middle.html index 2c72120..4bdda81 100644 --- a/themes/default/layouts/partials/navigator-middle.html +++ b/themes/default/layouts/partials/navigator-middle.html @@ -1,16 +1,9 @@ -{{- $href := .Href -}} +{{- $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 $paginator := .Context.Paginator -}} - {{- $href = or (and (eq $paginator.PageNumber 1) $href) - (and (gt $paginator.PageNumber 1) ($paginator.Prev.URL | absURL)) - "#" - -}} -{{- end -}} - {{- with .Icon -}} {{- $icon = readFile (print (partial "function-paths.html").static "/icons/feather/" . ".svg") -}} {{- end -}} @@ -63,15 +56,16 @@ id="search-form" action="https://lite.duckduckgo.com/lite/" > - <input required + <input + aria-autocomplete="list" + aria-label="search input" + autocomplete="off" id="search-input" name="q" - value="" - type="search" - autocomplete="off" + required="" spellcheck="false" - aria-autocomplete="list" - aria-label="search input" + type="search" + value="" /> <button id="search-submit"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/search.svg")) }} |