forked from TryGhost/Digest
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
43 lines (37 loc) · 1.29 KB
/
index.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
{{!< default}}
<main id="gh-main" class="gh-main gh-canvas">
<section class="gh-pagehead">
<header class="gh-pagehead-content">
<h1 class="gh-pagehead-title">Archive</h1>
<div class="gh-pagehead-description">
{{#if description}}
{{description}}
{{else}}
A collection of {{plural pagination.total empty="0 issues" singular="% issue" plural="% issues"}}
{{/if}}
</div>
</header>
</section>
{{#get "posts" filter="featured:true" limit="all" as |featured|}}
{{#if featured}}
<section class="gh-section gh-section-featured">
<h3 class="gh-section-title"><span>Featured</span></h3>
<div class="gh-featured">
{{#foreach featured}}
{{> loop}}
{{/foreach}}
</div>
</section>
{{/if}}
{{/get}}
<section class="gh-section">
<h3 class="gh-section-title"><span>Latest</span></h3>
<div class="gh-feed">
{{#get "posts" limit="all"}}
{{#foreach posts}}
{{> loop}}
{{/foreach}}
{{/get}}
</div>
</section>
</main>