make authors clickable and link to author overview

This commit is contained in:
rra
2022-05-31 18:59:25 +02:00
parent 1970cc6513
commit 4d57b388b1
2 changed files with 19 additions and 7 deletions

View File

@ -29,7 +29,7 @@
<footer class='post-footer'>
<div class='footer-metadata'>
<span class="from p-author">From {{ if .Params.authors }}<b>{{range .Params.authors}} {{.}} {{end}}</b> on{{ end }}</span>
<span class="from p-author">{{ if .Params.authors }}From {{range .Params.authors}}<b> <a href='{{ "/authors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> on{{ end }}</span>
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
</div>
{{ if .Truncated }}