-
Notifications
You must be signed in to change notification settings - Fork 6
/
page-archives.hbs
32 lines (32 loc) · 1.06 KB
/
page-archives.hbs
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
{{!< default}}
{{#post}}
<article class="archives">
<section class="archives-content">
<span class="archives-total">
{{#get "posts" as |posts postPages|}}
<strong>
{{t 'Now we have {total} posts.' total=postPages.total}}
</strong>
{{/get}}
</span>
{{#get "posts" limit="all" order="published_at desc"}}
{{#foreach posts}}
<div class="archives-item" date="{{date format="YYYY"}}">
<div class="archives-info">
<div class="archives-info-meta">
<a href="{{url}}">
<i class="iconfont icon-calendar" aria-hidden="true"></i>
<time class="archives-date" datetime="{{date published_at format="MM-DD"}}">{{date
published_at format="MM-DD"}}</time>
{{title}}
</a>
</div>
</div>
</div>
{{/foreach}}
{{/get}}
</section>
</article>
{{> comment }}
<script src="{{asset 'js/page-archives.js'}}"></script>
{{/post}}