From ba5d38ad4427bcda21a4cc57689464ed58d8b9a0 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 24 Jan 2020 00:07:47 +0100 Subject: Rework of main template, adds options for more fine customisation --- layouts/_default/baseof.html | 61 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 8 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a2eb80e..a9c4da1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,24 +7,69 @@ - -
- {{ template "toc" . }} +
+
- {{ partial "docs/mobile-header" . }} - {{ template "main" . }} - {{ partial "docs/footer" . }} +
+ {{ template "header" . }} +
+ + {{ template "main" . }} + +
+ {{ template "footer" . }} + {{ template "comments" . }} +
{{ partial "docs/inject/footer" . }}
-
{{ 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" }} + {{ .TableOfContents }} +{{ end }} -- cgit v1.2.3