Skip to content

Commit

Permalink
update TOC to only top level headers
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd committed Aug 1, 2024
1 parent 976f8e2 commit 3ff8359
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion _assets/css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,6 @@ blockquote .source {

#table-of-contents ul#toc {
padding: 0;
list-style-type: decimal;
list-style-position: inside;
}

Expand Down
12 changes: 11 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,19 @@ feed:
include:
- .well-known

# _config.yml
defaults:
- scope:
path: ""
values:
toc: true

toc:
min_level: 1
max_level: 1
ordered_list: true
no_toc_section_class: no_toc_section
list_id: toc
list_class: section-nav
sublist_class: ''
item_class: toc-entry
item_prefix: toc-

0 comments on commit 3ff8359

Please sign in to comment.