From: Bjørn Erik Pedersen Date: Mon, 20 Jun 2016 15:53:27 +0000 (+0200) Subject: Revert "docs: Refactor /docs to use the block keyword" X-Git-Tag: v0.17~277 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ca5ae50c;p=brevno-suite%2Fhugo Revert "docs: Refactor /docs to use the block keyword" I forgot that we support Go 1.5 ... This reverts commit 3a2748e0d2d1a574f569fb9cf45efeaf8d1fee2f. --- diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html deleted file mode 100644 index 076f46dd..00000000 --- a/docs/layouts/_default/baseof.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ 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 b8bcfa70..70201406 100644 --- a/docs/layouts/_default/single.html +++ b/docs/layouts/_default/single.html @@ -1 +1,12 @@ -{{ define "main" }}{{ .Content }}{{ end }} +{{ partial "header.html" . }} +{{ if .Params.toc }} +
+{{ .Content }} +
+
+ {{ .TableOfContents }} +
+{{ else }} +{{ .Content }} +{{ end }} +{{ partial "footer.html" . }}