forked from zutrinken/attila
-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-archives.hbs
63 lines (50 loc) · 1.75 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{{!< default}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<header class="post-header">
<div class="inner">
<h1 class="post-title">{{{title}}}</h1>
</div>
</header>
<main class="content" role="main">
<article class="{{post_class}}">
<div class="inner">
<section class="post-content archives">
<div class="popular-wrapper">
<h4 class="popular-title">{{t "Topics"}}</h4>
<span class="popular-tags post-tags">
{{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
{{#foreach tags}}
<a href='{{ url }}'>#{{ name }}: {{ count.posts }}</a>
{{/foreach}}
{{/get}}
</span>
</div>
{{#get "posts" limit="all" filter="visibility:public" }}
{{#foreach posts}}
{{!-- <div class="archive-group-month archive-group-month-{{date format="M"}} ">
<div class="archive-header post-label">{{date format="YYYY/MM"}}</div>
<div class="archive-post">
<div class="archive-post-title">
<a href="{{url}}">{{title}}<span class="post-date" title="2022/07/18 12:18:38">{{date published_at timeago="true"}}</span></a>
</div>
</div>
</div> --}}
<div class="c-card-archive c-card-archive--date-{{date format="M"}}">
<div class="c-card-archive__meta">
<div class="c-card-archive__date u-type-uppercase">{{date format="YYYY-MM "}}</div>
</div>
<div class="c-card-archive__content">
<div class="c-card-archive__title">
<time class="c-card-archive__date-mini" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD"}}:</time>
<a href="{{url}}" class="c-card-archive__url">{{title}}</a>
</div>
</div>
</div>
{{/foreach}}
{{/get}}
</section>
</div>
</article>
</main>
{{/post}}