style: remove unused keep-sidebar class

This commit is contained in:
Jimmy 2021-06-21 18:36:36 +02:00
parent 985c315e45
commit 38be85db7e

View File

@ -1,7 +1,7 @@
{{ define "body-class" }}
{{ $TOCEnabled := default (default false .Site.Params.article.toc) .Params.toc }}
{{- .Scratch.Set "hasTOC" (and (ge (len .TableOfContents) 100) $TOCEnabled) -}}
article-page keep-sidebar{{ if (.Scratch.Get "hasTOC") }} has-toc{{ end }}
article-page {{ if (.Scratch.Get "hasTOC") }}has-toc{{ end }}
{{ end }}
{{ define "container-class" }}