-
Notifications
You must be signed in to change notification settings - Fork 2
/
archive.html
executable file
·48 lines (47 loc) · 1.26 KB
/
archive.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
{{template "header.html" .}}
{{template "inner_header.html" .}}
<div class="container body-wrap fade">
{{range $.archives}}
{{$year := .Year}}
{{range .MonthAchives}}
<h3 class="archive-separator">{{$year}}-{{.Month}}</h3>
<div class="waterfall">
{{range .Posts}}
<div class="waterfall-item">
<article class="article-card archive-article">
<div class="post-meta">
<time class="post-time" datetime="{{dateFormat .PublicTime "2006-01-02"}}" itemprop="datePublished">{{dateFormat .PublicTime "2006-01-02"}}</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="{{$.postUrl}}/{{.UrlTitle}}">
{{if .Title}}
{{.Title}}
{{else}}
Untitled
{{end}}
</a>
</h3>
{{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>
</div>
{{end}}
</div>
{{end}}
{{end}}
</div>
<script>
var BLOG = {
ROOT: "/",
SHARE: false,
REWARD: false
};
</script>
{{template "footer.html" .}}