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 }}"
|
title = "{{ replace .Name "-" " " | title }}"
|
||||||
date = "{{ .Date }}"
|
date = "{{ .Date }}"
|
||||||
|
toc = true
|
||||||
draft = true
|
draft = true
|
||||||
|
|
||||||
description = """
|
description = """
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
+++
|
+++
|
||||||
title = "{{ replace .Name "-" " " | title }}"
|
title = "{{ replace .Name "-" " " | title }}"
|
||||||
menu = "main"
|
menu = "main"
|
||||||
|
toc = true
|
||||||
|
|
||||||
description = """
|
description = """
|
||||||
Lorem ipsum
|
Lorem ipsum
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{{ partial "navbar.html" . }}
|
{{ partial "navbar.html" . }}
|
||||||
|
|
||||||
<div class="page">
|
<div class="page">
|
||||||
{{ if and (ne .Params.Toc false) .IsPage }}
|
{{ if and .Params.Toc .IsPage }}
|
||||||
<div class="side">
|
<div class="side">
|
||||||
<h3>Table of Contents</h3>
|
<h3>Table of Contents</h3>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
|
Loading…
Reference in New Issue
Block a user