From 1147a663e70aadb2578cbe601bc723d7cd939c5a Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sat, 30 Aug 2025 15:17:32 +0200 Subject: added non-content --- themes/hugo-book/layouts/_default/baseof.html | 83 +++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 themes/hugo-book/layouts/_default/baseof.html (limited to 'themes/hugo-book/layouts/_default/baseof.html') diff --git a/themes/hugo-book/layouts/_default/baseof.html b/themes/hugo-book/layouts/_default/baseof.html new file mode 100644 index 0000000..a6c4c07 --- /dev/null +++ b/themes/hugo-book/layouts/_default/baseof.html @@ -0,0 +1,83 @@ + + + + {{ partial "docs/html-head" . }} + {{ partial "docs/inject/head" . }} + + + + +
+ + +
+
+ {{ template "header" . }} +
+ + {{ partial "docs/inject/content-before" . }} + {{ template "main" . }} + {{ partial "docs/inject/content-after" . }} + +
+ {{ template "footer" . }} + {{ partial "docs/inject/footer" . }} +
+ + {{ template "comments" . }} + + +
+ + {{ if default true (default .Site.Params.BookToC .Params.BookToC) }} + + {{ end }} +
+ + {{ partial "docs/inject/body" . }} + + + +{{ 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" }} + {{ partial "docs/toc" . }} +{{ end }} -- cgit v1.2.3