From aed9a7fbb084a33647b76f9ab1e8c25d26dbe120 Mon Sep 17 00:00:00 2001 From: razonyang Date: Sun, 3 Dec 2023 11:37:40 +0800 Subject: [PATCH] style: prepare for theming --- assets/hb/modules/docs/scss/_content.scss | 4 ++++ layouts/docs/list.html | 6 ++---- layouts/docs/single.html | 6 +++--- layouts/partials/hb/modules/docs/doc.html | 2 +- layouts/partials/hb/modules/docs/doc/comments.html | 2 +- layouts/partials/hb/modules/docs/nav.html | 2 +- layouts/partials/hb/modules/docs/section.html | 12 +++++++----- layouts/partials/hb/modules/docs/toc.html | 2 ++ .../partials/hb/modules/docs-doc-nav/index.html | 2 +- 9 files changed, 22 insertions(+), 16 deletions(-) diff --git a/assets/hb/modules/docs/scss/_content.scss b/assets/hb/modules/docs/scss/_content.scss index 62bfb6e9..a56f2ae6 100644 --- a/assets/hb/modules/docs/scss/_content.scss +++ b/assets/hb/modules/docs/scss/_content.scss @@ -14,4 +14,8 @@ h6 { margin-top: 0.5rem; } + + :last-child { + margin-bottom: 0; + } } diff --git a/layouts/docs/list.html b/layouts/docs/list.html index 76d6977a..02b2c191 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -1,13 +1,11 @@ {{- define "main" }}
-
+
{{ partial "hb/modules/docs/nav" . }}
{{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-main-begin") }} -
- {{ partial "hb/modules/docs/section" . }} -
+ {{ partial "hb/modules/docs/section" . }} {{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-main-end") }}
diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 71746e94..f4d075a3 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -1,12 +1,12 @@ {{- define "main" }}
-
+
{{ partial "hb/modules/docs/nav" . }}
{{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-main-begin") }} -
-
+
+

{{ .Title }}