From 259c3faf63483accb71845f56995514c0c86384a Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 15 Jun 2022 03:11:21 +0200 Subject: [PATCH] small fixes --- themes/buha/assets/scss/article.scss | 25 +++++++++---------- themes/buha/layouts/_default/baseof.html | 2 +- .../buha/layouts/partials/layout/article.html | 4 ++- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/themes/buha/assets/scss/article.scss b/themes/buha/assets/scss/article.scss index 9bd3480..adb680c 100644 --- a/themes/buha/assets/scss/article.scss +++ b/themes/buha/assets/scss/article.scss @@ -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; diff --git a/themes/buha/layouts/_default/baseof.html b/themes/buha/layouts/_default/baseof.html index aed856a..6a008aa 100644 --- a/themes/buha/layouts/_default/baseof.html +++ b/themes/buha/layouts/_default/baseof.html @@ -4,7 +4,7 @@
- {{ partial "snippets/header" . }} + {{ partialCached "snippets/header" . }}
{{ partial "snippets/banner" . -}} diff --git a/themes/buha/layouts/partials/layout/article.html b/themes/buha/layouts/partials/layout/article.html index ed86414..49b30a4 100644 --- a/themes/buha/layouts/partials/layout/article.html +++ b/themes/buha/layouts/partials/layout/article.html @@ -40,10 +40,12 @@ {{ $count_href := .context.TableOfContents | strings.Count "href" }} {{ if ge $count_href 4 }} +
+ Inhaltsverzeichnis
-
Inhaltsverzeichnis
{{ .context.TableOfContents }}
+
{{ end }}