aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/head.html1
-rw-r--r--layouts/partials/header.html13
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>