From 9b5f3fad7068298265dbbc8a65077f7917a090a5 Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sun, 21 Sep 2025 00:27:35 +0200 Subject: updated hugo-book theme --- themes/hugo-book/layouts/baseof.html | 90 ++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 themes/hugo-book/layouts/baseof.html (limited to 'themes/hugo-book/layouts/baseof.html') diff --git a/themes/hugo-book/layouts/baseof.html b/themes/hugo-book/layouts/baseof.html new file mode 100644 index 0000000..2e6b0a9 --- /dev/null +++ b/themes/hugo-book/layouts/baseof.html @@ -0,0 +1,90 @@ + + + + {{ partial "docs/html-head" . }} + {{ partial "docs/inject/head" . }} + + + + +
+ {{ template "menu-container" . }} + +
+
+ {{ template "header" . }} +
+ + {{ partial "docs/inject/content-before" . }} + {{ template "main" . }} + {{ partial "docs/inject/content-after" . }} + +
+ {{ template "footer" . }} + {{ partial "docs/inject/footer" . }} +
+ + {{ template "comments" . }} + +
+ + {{ template "toc-container" . }} +
+ + {{ partial "docs/inject/body" . }} + + + +{{ define "menu-container" }} + +{{ end }} + +{{ define "menu" }} + {{ partial "docs/menu" . }} +{{ end }} + +{{ define "header" }} + {{ partial "docs/header" . }} + + {{ if default true (default .Site.Params.BookToC .Params.BookToC) }} + + {{ end }} +{{ end }} + +{{ define "footer" }} + {{ partial "docs/footer" . }} +{{ end }} + +{{ define "comments" }} + {{ if and .Content (default true (default .Site.Params.BookComments .Params.BookComments)) }} +
+ {{- partial "docs/comments" . -}} +
+ {{ end }} +{{ end }} + +{{ define "main" }} +
+ {{- .Content -}} +
+{{ end }} + +{{ define "toc-container" }} +{{ if partial "docs/toc-show" . }} + +{{ end }} +{{ end }} + +{{ define "toc" }} + {{ partial "docs/toc" . }} +{{ end }} -- cgit v1.2.3