mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat: set Table of Contents per page, not globally
This commit is contained in:
parent
cc93f9fb7f
commit
32d4a9358c
3 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue