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>
{% endrenderTemplate %}
<main>
<!-- <aside class="left-sidebar">
Left sidebar content here
</aside> -->
{% if toc %}
<aside class="left-sidebar">
{{ content | toc | safe }}
</aside>
{% endif %}
{{ content | safe }}
<!-- <aside class="right-sidebar">
Right sidebar content here