mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
Revert "docs: Refactor /docs to use the block keyword"
I forgot that we support Go 1.5 ...
This reverts commit 3a2748e0d2.
This commit is contained in:
1 parent
3a2748e0d2
commit
ca5ae50c2b
2 files changed
+12
-13
No files matched your search
@@ -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" . }}
|
|
||||||
@@ -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" . }}
|
||||||
Reference in new issue
Block a user