Convert authors to taxonomies

This commit is contained in:
Will Faught
2024-05-28 23:34:04 -07:00
parent 009716b94b
commit 45adb2af27
8 changed files with 25 additions and 86 deletions

View File

@@ -84,15 +84,7 @@
{{ range $i, $author := . -}}
{{- if gt $i 0 }}, {{ end -}}
{{- with $author.id -}}
{{- with site.GetPage (print "authors/" .) -}}
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title | default $author.name }}</a>
{{- else -}}
{{- $author.name -}}
{{- end -}}
{{- else -}}
{{- $author.name -}}
{{- end -}}
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
</p>
{{ end }}