Skip to content

Commit 72e4da5

Browse files
committed
Support notoc metadata
1 parent 2e09895 commit 72e4da5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
{% for toc_item in theme_page_sidebar_items %}
2-
<div class="toc-item">
3-
{% include toc_item %}
4-
</div>
5-
{% endfor %}
1+
{% if meta is defined and not (meta is not none and 'notoc' in meta) %}
2+
{% for toc_item in theme_page_sidebar_items %}
3+
<div class="toc-item">
4+
{% include toc_item %}
5+
</div>
6+
{% endfor %}
7+
{% endif %}

0 commit comments

Comments
 (0)