Revert "docs: Refactor /docs to use the block keyword"
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 20 Jun 2016 15:53:27 +0000 (17:53 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 20 Jun 2016 15:53:27 +0000 (17:53 +0200)
I forgot that we support Go 1.5 ...

This reverts commit 3a2748e0d2d1a574f569fb9cf45efeaf8d1fee2f.

docs/layouts/_default/baseof.html [deleted file]
docs/layouts/_default/single.html

diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html
deleted file mode 100644 (file)
index 076f46d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ partial "header.html" . }}
-{{ if .Params.toc }}
-<div class="col-lg-8 col-md-12">
-{{block "main" .}}{{end}}
-</div>
-<div id="toc" class="col-lg-offset-6 toc {{ if gt (len .TableOfContents) 2500 }}compact{{ end }}">
-    {{ .TableOfContents }}
-</div>
-{{ else }}
-{{block "main" .}}{{end}}
-{{ end }}
-{{ partial "footer.html" . }}
index b8bcfa70c39285aefb6ab13b4ba8e6155b1ffc0a..702014061e28b2fdd96643d71d4730fe76d9e49c 100644 (file)
@@ -1 +1,12 @@
-{{ define "main" }}{{ .Content }}{{ end }}
+{{ partial "header.html" . }}
+{{ if .Params.toc }}
+<div class="col-lg-8 col-md-12">
+{{ .Content }}
+</div>
+<div id="toc" class="col-lg-offset-6 toc {{ if gt (len .TableOfContents) 2500 }}compact{{ end }}">
+    {{ .TableOfContents }}
+</div>
+{{ else }}
+{{ .Content }}
+{{ end }}
+{{ partial "footer.html" . }}