From c2b68b72a9659e355becdba41c2befbcff63e710 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Tue, 11 Nov 2014 12:33:23 +0000 Subject: [PATCH] link authors to searches --- htdocs/templates/book.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/templates/book.html b/htdocs/templates/book.html index 6a0173d..00d50c8 100644 --- a/htdocs/templates/book.html +++ b/htdocs/templates/book.html @@ -13,9 +13,9 @@ {{.Book.Metadata.Title}} </h1> - <p class="book-authors"><b> - {{join .Book.Metadata.Creator ", "}} - </b></p> + <p class="book-authors"> + {{range $i, $a := .Book.Metadata.Creator}}{{if gt $i 0}}, {{end}}<a href="/search?q=Author%3A{{$a}}"><b>{{$a}}</b></a>{{end}} + </p> <p> {{join .Book.Metadata.Publisher ", "}} -- GitLab