fix: authors

This commit is contained in:
Ben Goldsworthy 2025-03-02 22:40:45 +01:00
parent ee740bad7a
commit 4cd64207fe
Signed by: Rumperuu
SSH key fingerprint: SHA256:v3uompaUiPqV2w1/AIRWBSQOxr2dntH9Xs/y8fDnUPU

View file

@ -5,7 +5,8 @@
@params sc The site context. @params sc The site context.
*/ -}} */ -}}
<p style="display: none">Author{{ with .authors }}s{{ end }}:&nbsp; <span style="display: none">
<p>Author{{ with .authors }}s{{ end }}:&nbsp;
{{- with .authors -}} {{- with .authors -}}
</p> </p>
<ul> <ul>
@ -19,5 +20,6 @@
</ul> </ul>
{{- else -}} {{- else -}}
<a class="p-author" itemprop="author" rel="author" href="{{ $.sc.Site.Home.Permalink }}">{{ $.sc.Site.Params.Author.name }}</a> <a class="p-author" itemprop="author" rel="author" href="{{ $.sc.Site.Home.Permalink }}">{{ $.sc.Site.Params.Author.name }}</a>
</p>
{{- end -}} {{- end -}}
</p> </span>