Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c3ea3 commit fb98662Copy full SHA for fb98662
template/books/list.html
@@ -28,10 +28,10 @@
28
<h4><a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">{{.Name}}</a></h4>
29
<div class="author-date">
30
[作] <a>{{.Author}}</a>
31
- [译] <a>刘晓艳</a>
+ {{if .Translator}}[译] <a>{{.Translator}}</a>{{end}}
32
{{.PubDate}}
33
</div>
34
- <p class="desc">{{.Desc}} <a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">[...]</a></p>
+ <p class="desc">{{substring .Desc 180 "..."}} <a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">[...]</a></p>
35
36
<div class="col-md-2 col-sm-2 book-cover-box pull-right">
37
<a href="/book/{{.Id}}" target="_blank" title="{{.Name}}">
0 commit comments