Condifitionally render table of contents on the left sidebar

This commit is contained in:
Helen Chong 2024-04-13 01:57:00 +08:00
parent 7a1a50e677
commit 89af94dbf8
1 changed files with 5 additions and 3 deletions

View File

@ -49,9 +49,11 @@
<navbar></navbar> <navbar></navbar>
{% endrenderTemplate %} {% endrenderTemplate %}
<main> <main>
<!-- <aside class="left-sidebar"> {% if toc %}
Left sidebar content here <aside class="left-sidebar">
</aside> --> {{ content | toc | safe }}
</aside>
{% endif %}
{{ content | safe }} {{ content | safe }}
<!-- <aside class="right-sidebar"> <!-- <aside class="right-sidebar">
Right sidebar content here Right sidebar content here