Skip to content

Commit

Permalink
Adds ToC default to collapsed option
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSteam committed Mar 14, 2024
1 parent 03a63b9 commit 1f7a8d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions _includes/custom/contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,12 @@
{% assign nodes = jekyll_toc | split: '>' %}
{% capture jekyll_toc %}
<div class="toc">
{%- if site.table_of_contents_collapsible != false -%}
<details open>
{%- if site.table_of_contents_collapsible != false %}
{%- if page.table_of_contents_collapsed != false -%}
<details open>
{%- else %}
<details>
{%- endif -%}
{%- endif- %}
<summary><b>{{ site.table_of_contents_header }}</b></summary>
<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h2 class="footer-heading">{{ site.title }}</h2>
<div class="footer-col">
<p>{{ site.description | escape }}</p>
<p>
<a href="https://pages.github.com/">GH Pages</a>, {{ site.github.versions.github-pages | default: 1.0 }}
<a href="https://pages.github.com/">GH Pages</a> {{ site.github.versions.github-pages | default: 1.0 }},
<a href="https://jekyllrb.com/">Jekyll</a> {{ site.github.versions.jekyll | default: 1.0 }},
{% if site.theme_version %}
<a href="https://github.com/JakeSteam/minimaJake">minimaJake</a> {{ site.theme_version }}.
Expand Down

0 comments on commit 1f7a8d7

Please sign in to comment.