-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost_list.html
executable file
·48 lines (45 loc) · 1.31 KB
/
post_list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<div class="container body-wrap">
<ul class="post-list">
{{range $.posts}}
<li class="post-list-item fade">
<article id="post-{{$.postUrl}}/{{.UrlTitle}}" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="{{.PublicTime | datetime}}" itemprop="datePublished">{{.PublicTime | datetime}}</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="{{$.postUrl}}/{{.UrlTitle}}">
{{if .Title}}
{{.Title}}
{{else}}
Untitled
{{end}}
</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
{{.Desc}}
<a href="{{$.postUrl}}/{{.UrlTitle}}" class="post-more waves-effect waves-button">
阅读全文...
</a>
</div>
{{if .Tags}}
<div class="post-footer">
<ul class="article-tag-list">
{{range $index,$tag := .Tags}}
<li class="article-tag-list-item"><a class="article-tag-list-link waves-effect waves-button" href="{{$.tagPostsUrl}}/{{$tag}}">{{$tag}}</a></li>
{{end}}
</ul>
</div>
{{end}}
</article>
</li>
{{end}}
</ul>
{{template "paging.html" $}}
</div>
<script>
var BLOG = {
ROOT: "/",
SHARE: false,
REWARD: false
};
</script>