-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
58 lines (49 loc) · 2.16 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{{!< default}}
<main id="gh-main" class="gh-main gh-outer">
<div class="gh-inner">
<article class="gh-latest gh-card">
<h2 class="gh-article-title gh-card-title">Hi, I am Ben,</h2>
<p class="gh-article-excerpt">{{@site.description}}</p>
</article>
<div class="gh-wrapper">
<section class="gh-section">
<h2 class="gh-section-title">Latest Posts</h2>
<div class="gh-feed">
{{#foreach posts}}
{{> loop}}
{{/foreach}}
</div>
<button class="gh-loadmore gh-btn">Load more issues</button>
</section>
<aside class="gh-sidebar">
{{#get "posts" filter="featured:true" limit="all" as |featured|}}
{{#if featured}}
<section class="gh-section">
<h3 class="gh-section-title">Featured</h3>
<div class="gh-featured gh-feed">
{{#foreach featured}}
{{> loop}}
{{/foreach}}
</div>
</section>
{{/if}}
{{/get}}
{{#get "tags" include="count.posts" limit="all" as |topic|}}
<section class="gh-section">
<h3 class="gh-section-title">Topics</h3>
<div class="gh-topic">
{{#foreach topic}}
<a class="gh-topic-item" href="{{url}}">
<h3 class="gh-topic-name">{{name}}</h3>
<span class="gh-topic-count">
{{plural count.posts empty="0 issues" singular="% issue" plural="% issues"}}
</span>
</a>
{{/foreach}}
</div>
</section>
{{/get}}
</aside>
</div>
</div>
</main>