Downgrade page_summary headings from <h2> to <h3>

When page_summaries are rendered in sections by year, the year heading is an <h2>
so these need to be <h3> for correct heading hierarchy.
This commit is contained in:
Eryn Wells 2024-10-23 11:30:56 -07:00
parent 59ff58e159
commit 9995c8d10d
2 changed files with 5 additions and 4 deletions

View file

@ -1,13 +1,13 @@
<article class="page-summary">
{{ if and (.Params.rendersSummary | default true) (gt (len .Description) 0) -}}
<hgroup class="page-summary__heading">
<h2><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h2>
<h3><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h3>
{{ with .Description }}
<p>{{ . | markdownify }}</p>
{{ end }}
</hgroup>
{{ else }}
<h2 class="page-summary__heading"><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h2>
<h3 class="page-summary__heading"><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h3>
{{ end }}
{{- if .Date -}}