Skip to content

Commit

Permalink
Merge pull request #9 from jhollowe/patch-4
Browse files Browse the repository at this point in the history
Allow disabling the TOC
  • Loading branch information
julianflapper authored May 11, 2020
2 parents f9c6c45 + 738658a commit a794d49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@
{{- partial "menu.html" . -}}
</div>

{{- if and (ne .Site.Params.toc false) (ne .Params.toc false) }}
<div class="docs-toc large order-lg-2 order-md-0 order-xs-1 col-12 col-lg-2 col-xl-2 position-sticky border-left">
{{- partial "tableofcontents.html" . -}}
</div>

<div class="main col-12 order-1 col-md-9 col-lg-10 col-xl-8 py-3">
{{- block "main" . }}{{- end }}
{{else}}
<div class="main col-12 order-1 col-md-9 col-lg-10 col-xl-10 py-3">
{{end}}

{{- block "main" . }}{{- end }}

<div class="row">

Expand Down

0 comments on commit a794d49

Please sign in to comment.