Files
leanote/app/views/Blog/search.html

45 lines
1.1 KiB
HTML
Raw Normal View History

2014-05-07 13:06:24 +08:00
{{template "Blog/header.html" .}}
<div id="postsContainer">
<div class="container">
2014-10-22 16:20:45 +08:00
<h2>{{msg . "search"}} - {{.key}} </h2>
2014-05-07 13:06:24 +08:00
</div>
<div id="posts">
{{range .blogs}}
<div class="each-post">
<div class="title">
2014-10-22 16:20:45 +08:00
<a href="{{$.viewUrl}}/{{.NoteId.Hex}}" title="{{msg $ "fullBlog"}}">
2014-05-07 13:06:24 +08:00
{{.Title}}
</a>
</div>
<div class="created-time">
2014-10-22 16:20:45 +08:00
<i class="fa fa-bookmark-o"></i>
2014-05-07 13:06:24 +08:00
{{if .Tags}}
2014-10-22 16:20:45 +08:00
{{blogTags $ .Tags}}
2014-05-07 13:06:24 +08:00
{{else}}
2014-10-22 16:20:45 +08:00
{{msg $ "noTag"}}
2014-05-07 13:06:24 +08:00
{{end}}
|
2014-10-22 16:20:45 +08:00
<i class="fa fa-calendar"></i> {{msg $ "updatedTime"}} {{.UpdatedTime | datetime}} |
<i class="fa fa-calendar"></i> {{msg $ "createdTime"}} {{.CreatedTime | datetime}}
2014-05-07 13:06:24 +08:00
</div>
<div class="desc">
{{.Content | raw}}
</div>
2014-10-22 16:20:45 +08:00
<a class="more" href="{{$.viewUrl}}/{{.NoteId.Hex}}" title="{{msg $ "fullBlog"}}">{{msg $ "more"}}</a>
2014-05-07 13:06:24 +08:00
</div>
{{end}}
{{if not .blogs }}
<div class="each-post">
2014-10-22 16:20:45 +08:00
{{msg . "none"}}
2014-05-07 13:06:24 +08:00
</div>
{{end}}
</div>
</div>
{{template "Blog/footer.html" .}}
{{template "Blog/highlight.html"}}
</body>
</html>