Skip to content

Commit 9f5d568

Browse files
committed
Add toc to posts
1 parent 0a526e3 commit 9f5d568

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

_layouts/post.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ <h1 class="post-title p-name">{{ page.title | markdownify | remove: '<p>' | remo
1919
{% endfor %}
2020
{%- endif -%}
2121
</header>
22+
23+
{%- comment -%} Add table of contents {%- endcomment -%}
24+
{% include toc.html %}
25+
2226
<div class="post-content e-content">
2327
{{ content }}
2428
</div>

0 commit comments

Comments
 (0)