✨ feat: set Table of Contents per page, not globally
This commit is contained in:
parent
cc93f9fb7f
commit
32d4a9358c
@ -15,7 +15,6 @@ highlight_code = true
|
|||||||
highlight_theme = "css"
|
highlight_theme = "css"
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
toc = true
|
|
||||||
use_cdn = false
|
use_cdn = false
|
||||||
|
|
||||||
timeformat = "%d %B %Y" # Default format: "31 January 2049"
|
timeformat = "%d %B %Y" # Default format: "31 January 2049"
|
||||||
|
@ -3,6 +3,9 @@ title = "Table of Contents Test"
|
|||||||
date = "2022-11-22"
|
date = "2022-11-22"
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tags = ["test"]
|
tags = ["test"]
|
||||||
|
|
||||||
|
[extra]
|
||||||
|
toc = true
|
||||||
+++
|
+++
|
||||||
|
|
||||||
# Heading 1
|
# Heading 1
|
||||||
|
@ -119,7 +119,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# Optional table of contents #}
|
{# Optional table of contents #}
|
||||||
{% if config.extra.toc | default(value=false) %}
|
{% if page.extra.toc | default(value=false) %}
|
||||||
{% if page.toc %}
|
{% if page.toc %}
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user