Skip to content

Commit

Permalink
Add contents title to collection pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Mar 5, 2024
1 parent fd26930 commit 9d6f3c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/collection-page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
</hgroup>
{% endif %}
{% if not topLevel and headings %}
<ol class="tna-ol tna-ol--plain- tna-!--hide-on-large tna-!--hide-on-medium">
<h2 class="tna-heading-l tna-!--hide-on-large tna-!--hide-on-medium">Contents</h2>
<ol class="tna-ol tna-!--hide-on-large tna-!--hide-on-medium">
{%- for heading in headings %}
<li>
<a href="#{{ heading.href }}" class="tna-link--no-visited-state">
Expand Down

0 comments on commit 9d6f3c5

Please sign in to comment.