Add option to disable TOC
Set `notoc` in [extra].
This commit is contained in:
parent
47d5caa51c
commit
f0dd3d9a9d
@ -35,7 +35,7 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro toc() %}
|
{% macro toc() %}
|
||||||
{% if page.toc %}
|
{% if page.toc and not page.extra.notoc %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for h1 in page.toc %}
|
{% for h1 in page.toc %}
|
||||||
<li>
|
<li>
|
||||||
|
Loading…
Reference in New Issue
Block a user