diff options
author | tdro <tdro@noreply.example.com> | 2023-05-30 16:14:44 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-05-30 17:01:14 -0400 |
commit | d466fe8d98a2a789223866ccc687062b4c041907 (patch) | |
tree | ae2f23c3a3804b6c8ec81d366ca8c91fe04beb49 /themes/default/layouts/partials | |
parent | a8a70edb5dceaa7bedd7b7912c758ed1e780993e (diff) | |
download | canory-d466fe8d98a2a789223866ccc687062b4c041907.tar.gz canory-d466fe8d98a2a789223866ccc687062b4c041907.tar.bz2 canory-d466fe8d98a2a789223866ccc687062b4c041907.zip |
themes/default/layouts/partials/navigator-middle: Remove implicit paginator
Avoid spooky action, an implicit pager can generate unnecessary pages
Diffstat (limited to 'themes/default/layouts/partials')
-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")) }} |