small fixes
This commit is contained in:
parent
b54b777d5e
commit
b3d3d85ac9
|
@ -14,7 +14,7 @@
|
|||
}
|
||||
|
||||
main h1 {
|
||||
margin-top: 1rem;
|
||||
margin-top: 0rem;
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
|
||||
|
@ -150,6 +150,7 @@ article h2 {
|
|||
text-align: right;
|
||||
flex-direction: column;
|
||||
min-width: 15%;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
footer {
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
<header>
|
||||
{{ partialCached "header" . }}
|
||||
</header>
|
||||
<div style="display: flex; justify-content: flex-end; flex-direction: row; height: 1rem;">
|
||||
{{ block "nav2" . -}}{{- end }}
|
||||
</div>
|
||||
<div class="content">
|
||||
<main>
|
||||
<h1>
|
||||
|
|
|
@ -163,6 +163,20 @@
|
|||
</div>
|
||||
{{- end -}}
|
||||
|
||||
{{ define "nav2" }}
|
||||
{{ $true := false }}
|
||||
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
||||
{{ if ne $taxonomyname nil }}
|
||||
{{ $true = true }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if $true }}
|
||||
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
||||
<a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}" style="margin-right: 1rem">{{ $taxonomyname | humanize }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "sidebar" }}
|
||||
{{- partial "sidebar" . }}
|
||||
{{ end }}
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
{{ if .IsSection }}
|
||||
<!-- {{ if .IsSection }}
|
||||
{{ $true := false }}
|
||||
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
||||
{{ if ne $taxonomyname nil }}
|
||||
|
@ -35,7 +35,7 @@
|
|||
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}">{{ $taxonomyname | humanize }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }} -->
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue