Skip to content

Commit d3b4b15

Browse files
authored
ADD: TOC to Pages.
1 parent 8480df6 commit d3b4b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/_macro/sidebar.swig

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<aside id="sidebar" class="sidebar">
1111
<div class="sidebar-inner">
1212

13-
{% set display_toc = is_post and theme.toc.enable %}
13+
{% set display_toc = is_post and theme.toc.enable or is_page and theme.toc.enable %}
1414

1515
{% if display_toc and toc(page.content).length > 1 %}
1616
<ul class="sidebar-nav motion-element">

0 commit comments

Comments
 (0)