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,21 +3,21 @@
{{- 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 }} {{ with .Pre }}{{ . }}{{ end }}
{{ with .Pre }}{{ . }}{{ end }} <li{{ with .Params.class }} class="{{ . }}"{{ end }}>
<li{{ with .Params.class }} class="{{ . }}"{{ end }}> {{- if .URL }}
{{- if .URL }} <a href="{{ .URL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Name }}</a>
<a href="{{ .URL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Name }}</a> {{- else }}
{{- else }} <li>{{ .Name }}</li>
<li>{{ .Name }}</li> {{- end }}
</li>
{{ with .Post }}{{ . }}{{ end }}
{{- end }} {{- end }}
</li> </ul>
{{ with .Post }}{{ . }}{{ end }} </nav>
{{- end }} </header>
</ul>
</nav>
<hr> <hr>