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

I forgot that we support Go 1.5 ...

This reverts commit 3a2748e0d2d1a574f569fb9cf45efeaf8d1fee2f.
This commit is contained in:
Bjørn Erik Pedersen 2016-06-20 17:53:27 +02:00
parent 4fa9cc5e7b
commit 8a92c8cce9
2 changed files with 12 additions and 13 deletions

View File

@ -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" . }}

View 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" . }}