wizard

placeholder description
git clone git@git.shmage.xyz/wizard.git
Log | Files | Refs | README

commit 39d7cc55ebf5f798358b23eaf202f96e8db31667
parent 6b012549ae6759a7704bed9dda854e9fea0a9d4e
Author: vimux <vimux@protonmail.com>
Date:   Sat,  3 Aug 2019 16:46:14 -0400

Fix main menu: don't create empty menu w/o items

Diffstat:
Mlayouts/partials/header.html | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/layouts/partials/header.html b/layouts/partials/header.html @@ -1,10 +1,12 @@ <header> <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + {{ with .Site.Menus.main }} <nav> <ul> - {{ range .Site.Menus.main }} + {{ range . }} <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> {{ end }} </ul> </nav> + {{ end }} </header>