Table of contents defaults to false

This commit is contained in:
BBaoVanC 2021-09-28 18:36:14 -05:00
parent 41bd025132
commit 0e4025a2d9
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
+++
title = "{{ replace .Name "-" " " | title }}"
date = "{{ .Date }}"
toc = true
draft = true
description = """

View File

@ -1,6 +1,7 @@
+++
title = "{{ replace .Name "-" " " | title }}"
menu = "main"
toc = true
description = """
Lorem ipsum

View File

@ -8,7 +8,7 @@
{{ partial "navbar.html" . }}
<div class="page">
{{ if and (ne .Params.Toc false) .IsPage }}
{{ if and .Params.Toc .IsPage }}
<div class="side">
<h3>Table of Contents</h3>
{{ .TableOfContents }}