summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-04-18 20:51:34 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-04-18 20:51:34 +0200
commit1c7d99e7e875b86d6ec08dd90860980037d0451f (patch)
tree3042c77c6befe860d76f6deb32bd0a51c37ac4c4
parent41832178b98cedcdd1e19a0292098b2bf116b21a (diff)
downloadblog-1c7d99e7e875b86d6ec08dd90860980037d0451f.tar.gz
blog-1c7d99e7e875b86d6ec08dd90860980037d0451f.tar.bz2
Sort navbar alphabetically
-rw-r--r--layouts/_default/baseof.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index c61432e..81ed596 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -19,7 +19,7 @@
<div class="container">
<nav>
<a href="/" class="brand-name">{{ .Site.Title }}</a>
- {{- range .Site.Sections }}
+ {{- range sort .Site.Sections "Title" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{- end }}
</nav>