From: Bjørn Erik Pedersen Date: Mon, 20 Jun 2016 13:20:44 +0000 (+0200) Subject: docs: Refactor /docs to use the block keyword X-Git-Tag: v0.18~218 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c2bf748e;p=brevno-suite%2Fhugo docs: Refactor /docs to use the block keyword Fixes #2226 --- diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html new file mode 100644 index 00000000..076f46dd --- /dev/null +++ b/docs/layouts/_default/baseof.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} +{{ if .Params.toc }} +
+{{block "main" .}}{{end}} +
+
+ {{ .TableOfContents }} +
+{{ else }} +{{block "main" .}}{{end}} +{{ end }} +{{ partial "footer.html" . }} diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html index 70201406..b8bcfa70 100644 --- a/docs/layouts/_default/single.html +++ b/docs/layouts/_default/single.html @@ -1,12 +1 @@ -{{ partial "header.html" . }} -{{ if .Params.toc }} -
-{{ .Content }} -
-
- {{ .TableOfContents }} -
-{{ else }} -{{ .Content }} -{{ end }} -{{ partial "footer.html" . }} +{{ define "main" }}{{ .Content }}{{ end }}