enableToc ui bug fixed

This commit is contained in:
zzossig 2019-12-26 14:07:40 +09:00
parent 484bb85ce1
commit 43a4d17a74
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
{{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }} {{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }}
<script src="{{ $enquire.RelPermalink }}"></script> <script src="{{ $enquire.RelPermalink }}"></script>
<main class="{{ if $.Param "enableSidebar" }}main-main{{ else }}main{{ end }}"> <main class="{{ if $.Param "enableToc" }}main-main{{ else }}main{{ end }}">
{{ if eq .Site.Params.enableBreadcrumb true }} {{ if eq .Site.Params.enableBreadcrumb true }}
{{ partial "body/breadcrumb" . }} {{ partial "body/breadcrumb" . }}
{{ end }} {{ end }}
@ -30,7 +30,7 @@
</main> </main>
{{ if $.Param "enableSidebar" }} {{ if $.Param "enableSidebar" }}
<aside class="main-side"> <aside class="{{ if $.Param "enableToc" }}main-side{{ end }}">
{{ partial "sidebar/sidebar-single" . }} {{ partial "sidebar/sidebar-single" . }}
</aside> </aside>
{{ end }} {{ end }}