Skip to content

Commit

Permalink
docs: Refactor /docs to use the block keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bep authored and tychoish committed Aug 13, 2017
1 parent e5c9c05 commit 63b48bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 12 additions & 0 deletions docs/layouts/_default/baseof.html
@@ -0,0 +1,12 @@
{{ 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" . }}
13 changes: 1 addition & 12 deletions docs/layouts/_default/single.html
@@ -1,12 +1 @@
{{ 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" . }}
{{ define "main" }}{{ .Content }}{{ end }}

0 comments on commit 63b48bd

Please sign in to comment.