feat: integrate a "table of content"

This commit is contained in:
2022-12-04 19:52:12 +01:00
parent 56fbb26827
commit 63aa82a960
4 changed files with 70 additions and 28 deletions

View File

@@ -2,6 +2,11 @@
layout: blog.njk
templateClass: tmpl-post
---
{%- if toc %}
<aside class="left-side">
{{ content | toc | safe }}
</aside>
{%- endif %}
<div class="main-content">
<h1>{{ title }}</h1>