Make TOC on parent pages optional

This commit is contained in:
Patrick Marsceill
2018-12-16 14:27:44 -05:00
parent 309b238400
commit 555dfae410
2 changed files with 18 additions and 2 deletions

View File

@@ -54,7 +54,7 @@
<div class="page-content">
{{ content }}
{% if page.has_children == true %}
{% if page.has_children == true and page.has_toc != false %}
<hr>
<h2 class="text-delta">Table of contents</h2>
{% assign children_list = site.pages | sort:"nav_order" %}