mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Table of contents defaults to false
This commit is contained in:
parent
41bd025132
commit
0e4025a2d9
@ -1,6 +1,7 @@
|
||||
+++
|
||||
title = "{{ replace .Name "-" " " | title }}"
|
||||
date = "{{ .Date }}"
|
||||
toc = true
|
||||
draft = true
|
||||
|
||||
description = """
|
||||
|
@ -1,6 +1,7 @@
|
||||
+++
|
||||
title = "{{ replace .Name "-" " " | title }}"
|
||||
menu = "main"
|
||||
toc = true
|
||||
|
||||
description = """
|
||||
Lorem ipsum
|
||||
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user