diff options
author | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
commit | e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6 (patch) | |
tree | 3667043819ab91065019dfe3b4ff83ad625c2b49 /themes/default/layouts/partials/navigator-middle.html | |
download | canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.gz canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.bz2 canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.zip |
config.yaml: Commission
Diffstat (limited to 'themes/default/layouts/partials/navigator-middle.html')
-rw-r--r-- | themes/default/layouts/partials/navigator-middle.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/navigator-middle.html b/themes/default/layouts/partials/navigator-middle.html new file mode 100644 index 0000000..acbd2f1 --- /dev/null +++ b/themes/default/layouts/partials/navigator-middle.html @@ -0,0 +1,58 @@ +{{ $id := .Id }} +{{ $href := .Href }} + +<nav> + <icon-button> + <a + id="{{ or $id "top" }}" + href="{{ or $href "#" }}" + > + {{ with .Icon }} + {{ safeHTML (readFile (print "static/icons/feather/" . ".svg")) }} + {{ else }} + {{ safeHTML (readFile "static/icons/feather/arrow-up.svg") }} + {{ end }} + {{ with .IconLabel }} + <small>{{ . }}</small> + {{ else }} + <small>Top</small> + {{ end }} + </a> + </icon-button> + + <section> + {{ with .Title }} + <h1>{{ . }}</h1> + {{ end }} + {{ with .Subtitle }} + <small>{{ . }}</small> + {{ end }} + </section> + + {{ partial "navigator-middle-walk.html" . }} + + <search-entry> + <form + id="search-form" + action="https://lite.duckduckgo.com/lite/"> + <input required + id="search-input" + name="q" + value="" + type="search" + autocomplete="off" + spellcheck="false" + role="searchbox" + aria-autocomplete="list" + aria-label="search input" + /> + <button id="search-submit"> + {{ safeHTML (readFile "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> |