diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..49a3121 --- /dev/null +++ b/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 }}