meleu
2022-04-03 e62d512d95bc52f3113cae5e3763665364fa7c72
disable ToC if frontmatter has "enableToc: false"
1 files modified
2 ■■■ changed files
layouts/_default/single.html 2 ●●● patch | view | raw | blame | history
layouts/_default/single.html
@@ -22,7 +22,7 @@
          <li><a href="{{ .Permalink }}">{{ .LinkTitle | humanize }}</a></li>
          {{ end }}
      </ul>
      {{ if (and $.Site.Data.config.enableToc (not (.Params.disableToc))) }}
      {{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
      <aside class="mainTOC">
          <h3>Table of Contents</h3>
          {{ .TableOfContents }}