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:
parent
5b6152ec2a
commit
24ed7eab29
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue