diff options
author | Óscar Nájera <hello@oscarnajera.com> | 2018-07-09 00:13:01 +0200 |
---|---|---|
committer | Óscar Nájera <hello@oscarnajera.com> | 2018-07-09 00:13:01 +0200 |
commit | 46ee5bd2810850456b49499894ba3b838a167e24 (patch) | |
tree | 94e273f6c2cf8ed1b1bcb769cfe2332c2a1549c4 /layouts/partials | |
parent | 15a77de868a966ac583cc3b6ace8bf5803e36185 (diff) | |
download | hugo-minimalist-theme-46ee5bd2810850456b49499894ba3b838a167e24.tar.gz hugo-minimalist-theme-46ee5bd2810850456b49499894ba3b838a167e24.tar.bz2 hugo-minimalist-theme-46ee5bd2810850456b49499894ba3b838a167e24.zip |
Sidebar overflow and links menu
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 13 |
2 files changed, 11 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 511a8c4..ddbc6e9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,6 +18,7 @@ position:fixed; z-index: 1; display: none; + overflow:auto; } #sidebar a { diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e9b4597..a3df9c6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,13 +20,20 @@ </a> </div> <ul class="list"> - {{ $currentPage := . }} {{ range .Site.Menus.main }} <li class="pv2"> - <a class="link white db grow {{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{end}}" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> + <a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> + {{ .Pre }} {{ .Name }}</a> + </li> + {{ end }} + </ul> + <ul class="list"> + {{ range .Site.Menus.links }} + <li class="pv2"> + <a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> {{ .Pre }} {{ .Name }}</a> - {{ end }} </li> + {{ end }} </ul> </nav> |