shithub: hugo

Download patch

ref: ca5ae50c2b300f7b5d86ad65da8d52cdf0a00f75
parent: 3a2748e0d2d1a574f569fb9cf45efeaf8d1fee2f
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Jun 20 13:53:27 EDT 2016

Revert "docs: Refactor /docs to use the block keyword"

I forgot that we support Go 1.5 ...

This reverts commit 3a2748e0d2d1a574f569fb9cf45efeaf8d1fee2f.

--- a/docs/layouts/_default/baseof.html
+++ /dev/null
@@ -1,12 +1,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" . }}
--- a/docs/layouts/_default/single.html
+++ b/docs/layouts/_default/single.html
@@ -1,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" . }}