Make h2 headings on blog posts list pages links

Per default posts listed on list pages don't really have clickable
links. Access with non-graphical browsers is not given - this commit
brings the needed changes to fix this.
This commit is contained in:
c47 2024-03-03 20:29:10 +01:00
parent 5b6152ec2a
commit 24ed7eab29
Signed by: c47
SSH key fingerprint: SHA256:FIo5G1VJnESaIB/8N5lcc2IDuZ02Sl2Qyye15i4w7jQ

View file

@ -68,6 +68,7 @@
{{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }}
{{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }}
<header class="entry-header">
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}">
<h2 class="entry-hint-parent">
{{- .Title }}
{{- if .Draft }}
@ -79,6 +80,7 @@
</span>
{{- end }}
</h2>
</a>
</header>
{{- if (ne (.Param "hideSummary") true) }}
<div class="entry-content">
@ -90,7 +92,6 @@
{{- partial "post_meta.html" . -}}
</footer>
{{- end }}
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</article>
{{- end }}