commit 7a134bb77651595a2f2fb00ea509eb035c46ea2e
parent 8a5cca63686e0e4d60f61c1a0dd55f943c66827d
Author: Mark Wilkerson <mark@markwilkerson.me>
Date: Mon, 10 Jun 2019 16:07:35 -0700
parameterize the nav
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
@@ -18,9 +18,9 @@
<h1 class="logo"><a href="/"><img src="{{ .Site.Params.logo }}" alt="{{ .Site.Title }}"/></a></h1>
<nav class="menu">
<ul>
- <li><a href="/about">About</a></li>
- <li><a href="/">Blog</a></li>
- <li><a href="/tags">Tags</a></li>
+ {{ range $nav := .Site.Params.nav }}
+ <li><a href="{{ $nav.url }}">{{ $nav.title }}</a></li>
+ {{ end}}
<li><a href="/index.xml"><img src="/images/rss.svg" alt="rss" class="rss" /></a></li>
</ul>
</nav>