diff options
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 |
commit | 4a1663d8d1728402f1dd9e95d6ae5b764224802c (patch) | |
tree | b43c5b79541dc709fe183bb8b2e72a99e02ab073 | |
parent | d635c95e698f2294ab8ef7daebc25073fd12efea (diff) | |
download | hugo-minimalist-theme-4a1663d8d1728402f1dd9e95d6ae5b764224802c.tar.gz hugo-minimalist-theme-4a1663d8d1728402f1dd9e95d6ae5b764224802c.tar.bz2 hugo-minimalist-theme-4a1663d8d1728402f1dd9e95d6ae5b764224802c.zip |
list of links
-rw-r--r-- | layouts/partials/header.html | 9 |
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> |