summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-04-24 20:00:47 +0200
committermms <michal@sapka.me>2024-04-24 20:00:47 +0200
commit06a78ff287d3fc51cb8f5d04dfdc751379fa10ff (patch)
tree926326f1dd7243405114af72eb65bd72f4446ca2 /layouts/_default
parent1c29765a2b4cb5d2702d2476cdc8985a6870d541 (diff)
chore: add bottom nav to BSD
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html3
-rw-r--r--layouts/_default/single.html6
2 files changed, 7 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index a7b0668..f106a52 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -2,6 +2,9 @@
{{if .Page.Content}}
{{ .Page.Content }}
+{{- if .Params.primary_menu }}
+{{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }}
+{{- end }}
{{ else }}
{{ if in .Page.Params.Categories "blog" }}
{{ partial "partials/blog_index.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1efacb3..0ac881c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -39,5 +39,7 @@
<a href="{{ .RelPermalink }}">{{ or .Page.Params.shortname .Page.Name }}</a> &rarr;
{{ end }}
{{ end }}
-{{ end }}
-
+{{- if .Params.primary_menu }}
+{{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }}
+{{- end }}
+{{- end }}