diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-04-18 20:51:34 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-04-18 20:51:34 +0200 |
commit | 1c7d99e7e875b86d6ec08dd90860980037d0451f (patch) | |
tree | 3042c77c6befe860d76f6deb32bd0a51c37ac4c4 /layouts/_default/baseof.html | |
parent | 41832178b98cedcdd1e19a0292098b2bf116b21a (diff) |
Sort navbar alphabetically
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 2 |
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> |