aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/navigator-middle.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-07-29 21:27:23 -0400
committertdro <tdro@noreply.example.com>2022-07-29 21:27:23 -0400
commit9c7151ff8bd95f620b3fe4bf99572530cd8740b4 (patch)
treef97a54187dcbfb0cad86f94055d57ec7bf1bca14 /themes/default/layouts/partials/navigator-middle.html
parentb163db67a35a10e153a4fa88d1e1f1d8f9a21f8e (diff)
downloadcanory-9c7151ff8bd95f620b3fe4bf99572530cd8740b4.tar.gz
canory-9c7151ff8bd95f620b3fe4bf99572530cd8740b4.tar.bz2
canory-9c7151ff8bd95f620b3fe4bf99572530cd8740b4.zip
themes/default/layouts/partials/navigator-middle: Merge walk
Diffstat (limited to 'themes/default/layouts/partials/navigator-middle.html')
-rw-r--r--themes/default/layouts/partials/navigator-middle.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/navigator-middle.html b/themes/default/layouts/partials/navigator-middle.html
index 8756ec9..a371506 100644
--- a/themes/default/layouts/partials/navigator-middle.html
+++ b/themes/default/layouts/partials/navigator-middle.html
@@ -29,7 +29,21 @@
{{ end }}
</section>
- {{ partial "navigator-middle-walk.html" . }}
+ {{ 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