fix: Render page_toc if it exists

This commit is contained in:
Faris Ansari 2020-06-15 11:56:42 +05:30
parent 517a3f5e32
commit d10470dc0d

View file

@ -101,12 +101,14 @@ id="page-{{ name or route | e }}" data-path="{{ pathname | e }}"
<div class="main-column doc-main col-12 col-lg-10 col-xl-8">
{{ main_content() }}
</div>
{%- if page_toc_html -%}
<div class="page-toc col-sm-2 d-none d-xl-block">
<div>
<h5>On this page</h5>
{{ page_toc_html }}
</div>
</div>
{%- endif -%}
</div>
</div>