-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patharchive.html
43 lines (38 loc) · 1.36 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
{{template "header.html" .}}
<div id="main-wrapper">
<div id="main">
<div class="row">
<div class="col-12 col-lg-11 col-xl-8">
<div id="page" class="post pb-5 pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4 mb-md-4">
<h1 class="dynamic-title">Archives</h1>
<div class="post-content">
<div id="archives" class="pl-xl-2">
{{ range $.archives }}
<span class="lead">{{.Year}}</span>
<ul class="list-unstyled">
{{ range .Posts }}
<li>
<div>
<!-- {{$datastr := (dateFormat .PublicTime "2006-01-02") }} 01 只获取月 02 只获取天 -->
<span class="date day">{{dateFormat .CreatedTime "02"}}</span>
<span class="date month small text-muted">{{dateFormat .CreatedTime "01"}} 月</span>
<a href="{{$.postUrl}}/{{.UrlTitle}}">{{.Title}}</a>
</div>
</li>
{{ end }}
</ul>
{{ end }}
</div> <!-- #archives -->
</div> <!-- .post-content -->
</div> <!-- #page -->
</div>
<div id="panel-wrapper" class="col-xl-3 pl-2 text-muted topbar-down">
{{template "post-update-list-trending-tags.html" .}}
</div> <!-- panel-wrapper -->
</div> <!-- .row -->
{{template "footer.html" .}}
</div> <!-- #main -->
</div> <!-- #main-wrapper -->
{{template "back-to-top.html" .}}
</body>
</html>