Not all authors have a URL associated with their name.
I have a partial (author.html) that splits quote enclosed authors, but I don’t understand enough Go string manipulation to modify this to add a link to each name, if a link is part of the author string.
---
title: K. Frog
date: 2023-07-20T13:12:19-07:00
draft: false
profile: https://example.org/kfrog <-- do not use `url` as the key; that's reserved
---
layouts/_default/single.html
{{ with .GetTerms "authors" }}
<p>Authors:</p>
<ul>
{{ range . }}
<li>
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
(<a href="{{ .Params.profile }}">profile</a>)
</li>
{{ end }}
</ul>
{{ end }}
Thank you for your reply, I had considered doing it this way, and this would work for pages authored on-site. However, the authors I’m referring to are generated from a bibtext file I parse to extract journal titles, author names and associated URLs (Often google scholar links, or links to person websites.
Essentially I’m producing a pager per publication from the bibtex, with most of the content automagically generated, it’s just the author name / url that’s flummoxed me.