This repository was archived by the owner on Dec 1, 2022. It is now read-only.
forked from TryGhost/Digest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
58 lines (51 loc) · 1.7 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-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}}
{{/if}}
</div>
</header>
</section>
{{#get "posts" include="tags" filter="featured:true" limit="3" 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>Newsletter Topics</span></h3>
{{#get "tags" limit="all"}}
<div class="gh-feed">
{{#foreach tags}}
<div class="topic">
<span class="topic-header">
<h2 class="topic-name">
<a href="{{url}}">{{name}}</a>
</h2>
</span>
</div>
{{/foreach}}
</div>
{{/get}}
</section> -->
<section class="gh-section">
<h3 class="gh-section-title"><span>All Newsletters</span></h3>
<div class="gh-feed">
{{#get "posts" include="tags" limit="all"}}
{{#foreach posts}}
{{> loop}}
{{/foreach}}
{{/get}}
</div>
</section>
</main>