Use & as author separator
And set properly the separators on other fields
This commit is contained in:
parent
867c19f97c
commit
7665eae762
8 changed files with 61 additions and 13 deletions
|
@ -47,7 +47,12 @@ function closeAlert() {
|
|||
<dl class="row">
|
||||
{{if .Authors}}
|
||||
<dt class="col-sm-3 text-sm-end">Authors</dt>
|
||||
<dd class="col-sm-9 text-start">{{range .Authors}}<a href="/search/?q=author:{{.}}">{{.}}</a>, {{end}}</dd>
|
||||
<dd class="col-sm-9 text-start">
|
||||
{{range $i, $author := .Authors}}
|
||||
{{if $i}}&{{end}}
|
||||
<a href="/search/?q=author:{{$author}}">{{$author}}</a>
|
||||
{{end}}
|
||||
</dd>
|
||||
{{end}}
|
||||
{{if .Publisher}}
|
||||
<dt class="col-sm-3 text-sm-end">Publisher</dt>
|
||||
|
@ -55,7 +60,12 @@ function closeAlert() {
|
|||
{{end}}
|
||||
{{if .Tags}}
|
||||
<dt class="col-sm-3 text-sm-end">Tags</dt>
|
||||
<dd class="col-sm-9 text-start">{{range .Tags}}<a href="/search/?q=tag:{{.}}">{{.}}</a>, {{end}}</dd>
|
||||
<dd class="col-sm-9 text-start">
|
||||
{{range $i, $tag := .Tags}}
|
||||
{{if $i}},{{end}}
|
||||
<a href="/search/?q=tag:{{$tag}}">{{$tag}}</a>
|
||||
{{end}}
|
||||
</dd>
|
||||
{{end}}
|
||||
{{if .Isbn}}
|
||||
<dt class="col-sm-3 text-sm-end">ISBN</dt>
|
||||
|
|
Reference in a new issue