Skip to content

Commit

Permalink
Merge pull request sighingnow#137 from Avikam03/master
Browse files Browse the repository at this point in the history
enable toc for index page
  • Loading branch information
sighingnow authored Jul 30, 2024
2 parents b6353bf + 10a770b commit a7d8769
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ remote_theme: sighingnow/jekyll-gitbook

toc:
enabled: true
h_min: 1
h_max: 3
h_min: 1
h_max: 3

# customize the link favicon in header, will be {{site.baseurl}}/{{site.favicon_path}}
favicon_path: /assets/gitbook/images/favicon.ico
Expand Down
5 changes: 5 additions & 0 deletions _includes/toc-date.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
<a href="{{site.baseurl}}/" onclick="pageScrollToTop(this)">
{{ site.title | escape }}
</a>
{% if site.toc.enabled %}
{% if site.toc.enabled_index %}
{% include toc.html html=content h_min=site.toc.h_min h_max=site.toc.h_max %}
{% endif %}
{% endif %}
</li>

<li class="divider"></li>
Expand Down

0 comments on commit a7d8769

Please sign in to comment.