Skip to content

Commit a7d8769

Browse files
authored
Merge pull request sighingnow#137 from Avikam03/master
enable toc for index page
2 parents b6353bf + 10a770b commit a7d8769

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ remote_theme: sighingnow/jekyll-gitbook
1818

1919
toc:
2020
enabled: true
21-
h_min: 1
22-
h_max: 3
21+
h_min: 1
22+
h_max: 3
2323

2424
# customize the link favicon in header, will be {{site.baseurl}}/{{site.favicon_path}}
2525
favicon_path: /assets/gitbook/images/favicon.ico

_includes/toc-date.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
<a href="{{site.baseurl}}/" onclick="pageScrollToTop(this)">
4040
{{ site.title | escape }}
4141
</a>
42+
{% if site.toc.enabled %}
43+
{% if site.toc.enabled_index %}
44+
{% include toc.html html=content h_min=site.toc.h_min h_max=site.toc.h_max %}
45+
{% endif %}
46+
{% endif %}
4247
</li>
4348

4449
<li class="divider"></li>

0 commit comments

Comments
 (0)