aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-08 23:10:08 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-08 23:10:29 +0200
commit4a1663d8d1728402f1dd9e95d6ae5b764224802c (patch)
treeb43c5b79541dc709fe183bb8b2e72a99e02ab073 /layouts/partials
parentd635c95e698f2294ab8ef7daebc25073fd12efea (diff)
downloadhugo-minimalist-theme-4a1663d8d1728402f1dd9e95d6ae5b764224802c.tar.gz
hugo-minimalist-theme-4a1663d8d1728402f1dd9e95d6ae5b764224802c.tar.bz2
hugo-minimalist-theme-4a1663d8d1728402f1dd9e95d6ae5b764224802c.zip
list of links
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/header.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 93ebfd1..83f724f 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -30,4 +30,13 @@
</h3>
</a>
</div>
+ <ul class="list">
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.main }}
+ <li class="pv2">
+ <a class="link {{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{end}}" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
+ {{ .Pre }} {{ .Name }}</a>
+ {{ end }}
+ </li>
+ </ul>
</nav>