-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathindex.hbs
More file actions
50 lines (44 loc) · 1.63 KB
/
index.hbs
File metadata and controls
50 lines (44 loc) · 1.63 KB
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
{{!< default}}
<main id="gh-main" class="gh-main gh-canvas">
<section class="gh-pagehead">
<header class="gh-pagehead-content">
<h1 class="gh-pagehead-title">{{t "Archive"}}</h1>
<div class="gh-pagehead-description">
{{#if description}}
{{description}}
{{else}}
{{plural pagination.total
empty=(t "A collection of 0 issues") singular=(t "A collection of 1 issue")
plural=(t "A collection of {numberOfIssues} issues" numberOfIssues=pagination.total) }}
{{/if}}
</div>
</header>
</section>
{{#get "posts" filter="featured:true" limit="5" as |featured|}}
{{#if featured}}
<section class="gh-section gh-section-featured">
<h3 class="gh-section-title"><span>{{t "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>{{t "Latest"}}</span></h3>
<div class="gh-feed">
{{#match pagination.page 2}}
{{#get "posts" limit=@config.posts_per_page as |recent|}}
{{#foreach recent}}
{{> "loop"}}
{{/foreach}}
{{/get}}
{{/match}}
{{#foreach posts}}
{{> "loop"}}
{{/foreach}}
</div>
</section>
</main>