Put top nav in header.

This commit is contained in:
tastytea 2021-07-16 22:31:35 +02:00
parent 469bf0881b
commit d82bdbfa52
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 19 additions and 19 deletions

View File

@ -16,7 +16,7 @@ body>*
margin-right: 0.2em; margin-right: 0.2em;
} }
.header .header .title
{ {
font-size: 150%; font-size: 150%;
margin-bottom: 1em; margin-bottom: 1em;
@ -28,9 +28,9 @@ body>*
content: " "; content: " ";
} }
.header .description .nav-top
{ {
font-size: 75%; margin-top: 1em;
} }
.nav ul, .pagination ul .nav ul, .pagination ul

View File

@ -3,8 +3,7 @@
{{- with .Site.Params.subtitle }} {{- with .Site.Params.subtitle }}
<span class="description">{{ . }}</span> <span class="description">{{ . }}</span>
{{- end }} {{- end }}
</header> <nav class="nav nav-top"{{- with .Site.Params.aria.menu_top }} aria-label="{{ . }}"{{- end }}>
<nav class="nav nav-top"{{- with .Site.Params.aria.menu_top }} aria-label="{{ . }}"{{- end }}>
<ul> <ul>
{{- $curr := . }} {{- $curr := . }}
{{- range .Site.Menus.main }} {{- range .Site.Menus.main }}
@ -19,5 +18,6 @@
{{ with .Post }}{{ . }}{{ end }} {{ with .Post }}{{ . }}{{ end }}
{{- end }} {{- end }}
</ul> </ul>
</nav> </nav>
</header>
<hr> <hr>