Skip to content

Commit 277245c

Browse files
committed
Added archive page
Signed-off-by: Marcus Noble <[email protected]>
1 parent 0578ac3 commit 277245c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

archive.hbs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{{!< default}}
2+
3+
{{! Archive Page }}
4+
<div class='wrapper container'>
5+
<h1 class='archive__title'>{{t 'Archive'}}</h1>
6+
<div class='archive__excerpt'>
7+
{{#get 'posts'}}
8+
{{t
9+
'Browse the complete archive of {total} posts.'
10+
total=pagination.total
11+
}}
12+
{{/get}}
13+
</div>
14+
15+
<div class='content'>
16+
<div class='archive js-post-feed'>
17+
{{#foreach posts visibility='all'}}
18+
<div
19+
class='archive-post-wrap post-year-{{date format='Y'}} js-post-card'
20+
>
21+
<div class='archive-post-label m-t m-b-sm fw-600'>{{date
22+
format='YYYY'
23+
}}</div>
24+
<article class='archive-post'>
25+
<time
26+
datetime='{{date published_at format='YYYY-MM-DD'}}'
27+
class='text-acc-3'
28+
>{{date published_at format='MMM YYYY'}}
29+
</time>
30+
31+
<h2 class='archive-post__title fw-500 text-acc-2 m-0'>
32+
<a class='archive-post__link flex-1' href='{{url}}'>{{title}}</a>
33+
</h2>
34+
</article>
35+
</div>
36+
{{/foreach}}
37+
</div>
38+
39+
{{! Pagination }}
40+
{{pagination}}
41+
</div>
42+
</div>

0 commit comments

Comments
 (0)