✨ 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"
|
||||
|
||||
[extra]
|
||||
toc = true
|
||||
use_cdn = false
|
||||
|
||||
timeformat = "%d %B %Y" # Default format: "31 January 2049"
|
||||
|
@ -3,6 +3,9 @@ title = "Table of Contents Test"
|
||||
date = "2022-11-22"
|
||||
[taxonomies]
|
||||
tags = ["test"]
|
||||
|
||||
[extra]
|
||||
toc = true
|
||||
+++
|
||||
|
||||
# Heading 1
|
||||
|
@ -119,7 +119,7 @@
|
||||
{% endif %}
|
||||
|
||||
{# Optional table of contents #}
|
||||
{% if config.extra.toc | default(value=false) %}
|
||||
{% if page.extra.toc | default(value=false) %}
|
||||
{% if page.toc %}
|
||||
<h2>Table of Contents</h2>
|
||||
<ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user