Use & as author separator

And set properly the separators on other fields
This commit is contained in:
Las Zenow 2021-05-01 11:36:07 +00:00
parent 867c19f97c
commit 7665eae762
8 changed files with 61 additions and 13 deletions

View file

@ -14,7 +14,12 @@
<span class="text-muted">{{if .Publisher}}{{.Publisher}}{{end}}</span>
</p>
<div class="card-text row">
<p class="col-9">{{range .Authors}}{{.}}, {{end}}</p>
<p class="col-9">
{{range $i, $author := .Authors}}
{{if $i}}<span class="text-muted">&amp;</span>{{end}}
{{$author}}</a>
{{end}}
</p>
<div class="col-3">
<div class="btn-group d-flex justify-content-end">
<a href="{{download_url .}}" class="btn btn-dark btn-sm">