mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
357c9db235
commit
3a2748e0d2
2 changed files with 13 additions and 12 deletions
12
docs/layouts/_default/baseof.html
Normal file
12
docs/layouts/_default/baseof.html
Normal file
|
@ -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" . }}
|
|
@ -1,12 +1 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "main" }}{{ .Content }}{{ end }}
|
||||||
{{ 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" . }}
|
|
||||||
|
|
Loading…
Reference in a new issue