forked from xiaoluoboding/ghost-theme-kaldorei
-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-archives.hbs
executable file
·53 lines (48 loc) · 2.23 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
{{!< default}}
{{! This is a page template. A page outputs content just like any other post, and has all the same
attributes by default, but you can also customise it to behave differently if you prefer. }}
{{! Everything inside the #post tags pulls data from the page }}
{{#post}}
<header class="main-header">
<nav class="container main-nav clearfix">
<div class="main-nav__brand">
<a class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
</div>
{{#if @blog.navigation}}
{{navigation}}
{{/if}}
</nav>
</header>
{{! The main container area on the homepage }}
<main id="container" class="container" role="main">
<div id="content" class="content col-sm-12 col-md-12 col-lg-12">
<article class="archives">
<section class="archives-content">
<span class="archives-top"></span>
<span class="archives-total">
{{! count posts }}
{{#get "posts" as |posts postPages|}}
{{! Use our pages (pagination) object }}
<strong>
{{plural postPages.total empty=(t "No posts") singular=(t "A collection of 1 post") plural=(t "A collection of % posts")}}
</strong>
{{/get}}
</span>
{{#get "posts" limit="all" order="published_at desc"}}
{{#foreach posts}}
<div class='archives-item' date="{{date format='YYYY'}}" data-anijs="if: scroll, on: window, do: fadeInDown animated, before: scrollReveal">
<div class='archives-info'>
<div class="archives-info-meta">
<i class='fa fa-calendar fa-fw' aria-hidden='true'></i>
<time class="archives-date" datetime="{{date published_at format='MM-DD'}}">{{date published_at format="MM-DD"}}</time>
<a href='{{url}}'>{{title}}</a>
</div>
</div>
</div>
{{/foreach}}
{{/get}}
</section>
</article>
<div>
</main>
{{/post}}