From 3a2748e0d2d1a574f569fb9cf45efeaf8d1fee2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 20 Jun 2016 15:20:44 +0200 Subject: [PATCH] docs: Refactor /docs to use the block keyword Fixes #2226 Closes #2229 --- docs/layouts/_default/baseof.html | 12 ++++++++++++ docs/layouts/_default/single.html | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 docs/layouts/_default/baseof.html diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html new file mode 100644 index 000000000..076f46dda --- /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 702014061..b8bcfa70c 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 }}