small fixes

This commit is contained in:
teldra 2022-06-15 03:11:21 +02:00
parent 30e330e7ba
commit 259c3faf63
3 changed files with 16 additions and 15 deletions

View File

@ -28,22 +28,21 @@ article {
margin-bottom: 2rem;
}
.toc {
padding-left: 0;
padding-bottom: .4rem;
margin-top: 1rem;
.toc-head {
margin-top: 1rem;
margin-right: 1rem;
margin-bottom: 1rem;
margin-left: 0;
font-size: 1.35rem;
}
ul { padding-left: 0;}
li { list-style: none; margin-bottom: .1rem; margin-left: 1rem;}
padding-left: 0;
padding-bottom: .4rem;
margin-top: 1rem;
.toc-head {
margin-top: 1rem;
margin-right: 1rem;
margin-bottom: 1rem;
margin-left: 0;
font-size: 1.35rem;
}
ul { padding-left: 0;}
li { list-style: none; margin-bottom: .1rem; margin-left: 1rem;}
}
}
.article_footer {
font-size: 60%;
display: flex;

View File

@ -4,7 +4,7 @@
<body>
<div class="container">
<header>
{{ partial "snippets/header" . }}
{{ partialCached "snippets/header" . }}
</header>
<main class="content">
{{ partial "snippets/banner" . -}}

View File

@ -40,10 +40,12 @@
{{ $count_href := .context.TableOfContents | strings.Count "href" }}
{{ if ge $count_href 4 }}
<details open>
<summary class="toc-head">Inhaltsverzeichnis</summary>
<div class="toc">
<div class="toc-head">Inhaltsverzeichnis</div>
{{ .context.TableOfContents }}
</div>
</details>
{{ end }}