forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
30e330e7ba
commit
259c3faf63
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
{{ partial "snippets/header" . }}
|
||||
{{ partialCached "snippets/header" . }}
|
||||
</header>
|
||||
<main class="content">
|
||||
{{ partial "snippets/banner" . -}}
|
||||
|
|
|
@ -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 }}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user