Skip to content

Commit a08b10d

Browse files
committed
Fix missing TOC in posts, add data-toc attribute
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent f441560 commit a08b10d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
{% include lang.html %}
1414

15-
<article class="px-1">
15+
<article class="px-1" data-toc="{{ page.toc }}">
1616
<header>
1717
<h1 data-toc-skip>{{ page.title }}</h1>
1818
{% if page.description %}

0 commit comments

Comments
 (0)