Skip to content

Commit

Permalink
Make toc <h2>, not inexplicable <h4>.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-p-randall committed Jan 11, 2024
1 parent 2c20dd7 commit c3ca8cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _layouts/notesindex.hmtl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ layout: default
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
<nav class="toc">
<header>
<h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label
| default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h4>
<h2 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label
| default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h2>{% comment %}these were h4{% endcomment %}
</header>
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" skip_no_ids=true %}
</nav>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{% if page.toc %}
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
<nav class="toc">
<header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h4></header>
<header><h2 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h2></header>{% comment %}these were h4{% endcomment %}
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" skip_no_ids=true %}
</nav>
</aside>
Expand Down

0 comments on commit c3ca8cf

Please sign in to comment.