diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 930e486..1b905af 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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"> |