-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpost_abstract.html
42 lines (40 loc) · 1.22 KB
/
post_abstract.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
{{range $.posts}}
<div class="post-preview">
<h1><a href="{{$.postUrl}}/{{.UrlTitle}}" title="{{.Title}}">
{{if .Title}} {{.Title}} {{else}} Untitled {{end}}
</a></h1>
<div class="post-content">
<p>
{{.Desc | raw}}
</p>
</div>
<div class="post-meta text-muted d-flex justify-content-between">
<div>
<!-- posted date -->
<i class="far fa-calendar fa-fw"></i>
{{.CreatedTime | datetime}}
<!-- time to read -->
<!-- page views -->
{{ if $.themeInfo.ReadNumType }}
<i class="far fa-eye fa-fw"></i>
{{ if eq $.themeInfo.ReadNumType "Leanote"}}
<span id="pv_{{.Title}}" class="pageviews">{{.ReadNum}}</span>
{{else if eq $.themeInfo.ReadNumType "Leacloud"}}
<span id="{{$.postUrl}}/{{.UrlTitle}}" class="leancloud_visitors"><span class="leancloud-visitors-count">1</span></span>
{{end}}
{{end}}
</div>
<!-- pin -->
{{ if .IsTop }}
<div class="pin">
<i class="fas fa-thumbtack fa-fw"></i>
<span>Pinned</span>
</div>
{{ end }}
</div> <!-- .post-meta -->
</div> <!-- .post-review -->
{{else}}
<div class="post-preview">
No Post
</div>
{{end}}