Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb98662

Browse files
committed
bugfix
1 parent a0c3ea3 commit fb98662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/books/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<h4><a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">{{.Name}}</a></h4>
2929
<div class="author-date">
3030
[作] <a>{{.Author}}</a>&nbsp;&nbsp;&nbsp;
31-
[译] <a>刘晓艳</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
31+
{{if .Translator}}[译] <a>{{.Translator}}</a>{{end}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3232
{{.PubDate}}
3333
</div>
34-
<p class="desc">{{.Desc}} <a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">[...]</a></p>
34+
<p class="desc">{{substring .Desc 180 "..."}} <a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">[...]</a></p>
3535
</div>
3636
<div class="col-md-2 col-sm-2 book-cover-box pull-right">
3737
<a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">

0 commit comments

Comments
 (0)