Fix heading links

In 24ed7eab29 I added a link element to the template to turn
headings of blog posts into clickable links, but added it to the
wrong place, which caused a CSS problem.

This commit brings the fix.
This commit is contained in:
c47 2024-03-04 20:47:53 +01:00
parent 24ed7eab29
commit d3ac32dc09
Signed by: c47
SSH key fingerprint: SHA256:FIo5G1VJnESaIB/8N5lcc2IDuZ02Sl2Qyye15i4w7jQ

View file

@ -68,8 +68,9 @@
{{- $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 }}">
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}">
<h2 class="entry-hint-parent">
</a>
{{- .Title }}
{{- if .Draft }}
<span class="entry-hint" title="Draft">
@ -80,7 +81,6 @@
</span>
{{- end }}
</h2>
</a>
</header>
{{- if (ne (.Param "hideSummary") true) }}
<div class="entry-content">
@ -92,6 +92,7 @@
{{- partial "post_meta.html" . -}}
</footer>
{{- end }}
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</article>
{{- end }}