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

View File

@ -3,21 +3,21 @@
{{- with .Site.Params.subtitle }}
<span class="description">{{ . }}</span>
{{- end }}
</header>
<nav class="nav nav-top"{{- with .Site.Params.aria.menu_top }} aria-label="{{ . }}"{{- end }}>
<ul>
{{- $curr := . }}
{{- range .Site.Menus.main }}
{{ with .Pre }}{{ . }}{{ end }}
<li{{ with .Params.class }} class="{{ . }}"{{ end }}>
{{- if .URL }}
<a href="{{ .URL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Name }}</a>
{{- else }}
<li>{{ .Name }}</li>
<nav class="nav nav-top"{{- with .Site.Params.aria.menu_top }} aria-label="{{ . }}"{{- end }}>
<ul>
{{- $curr := . }}
{{- range .Site.Menus.main }}
{{ with .Pre }}{{ . }}{{ end }}
<li{{ with .Params.class }} class="{{ . }}"{{ end }}>
{{- if .URL }}
<a href="{{ .URL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Name }}</a>
{{- else }}
<li>{{ .Name }}</li>
{{- end }}
</li>
{{ with .Post }}{{ . }}{{ end }}
{{- end }}
</li>
{{ with .Post }}{{ . }}{{ end }}
{{- end }}
</ul>
</nav>
</ul>
</nav>
</header>
<hr>