summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-06-16 22:51:52 +0200
committermms <michal@sapka.me>2024-06-16 22:51:52 +0200
commit874c77e2f875d348afc70b5dd78750f4558f8849 (patch)
tree24b4b915d3aad87f3a3673e6a8f7bda40e1572ba /layouts/partials
parent985c17739a6bf3fb1d85bc858eccedb13150b3bb (diff)
brain rot order
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/homepage/brainrot.html2
-rw-r--r--layouts/partials/menu.html6
2 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/homepage/brainrot.html b/layouts/partials/homepage/brainrot.html
index d43033b..b0ad35f 100644
--- a/layouts/partials/homepage/brainrot.html
+++ b/layouts/partials/homepage/brainrot.html
@@ -1,5 +1,5 @@
<section class="brain-rot">
- <h2 id="brain-rot"><a href="#brain-rot">Brain rot</a></h2>
+ <h2 id="brain-rot"><a href="/brain-rot">Brain rot</a></h2>
"Mark my words, this stuff will rot your brain!"<br>
-- society
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index f70ac28..47f1d44 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -1,7 +1,11 @@
{{- $page := .page }}
{{- $menuID := .menuID }}
-{{- with index site.Menus $menuID }}
+{{ $list := index site.Menus $menuID }}
+{{ if eq $page.Params.menu_order "name"}}
+ {{ $list = (index site.Menus $menuID).ByName }}
+{{ end}}
+{{- with $list }}
<nav>
<ul>
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}