-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcustom-newsletter.hbs
68 lines (50 loc) · 1.6 KB
/
custom-newsletter.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
59
60
61
62
63
64
65
66
67
68
{{!< default}}
<main class="site__content">
{{#post}}
<article class="article">
<header class="section background-alternate">
<div class="container container--article">
<div class="article__meta">
<time datetime="{{date format="YYYY-MM-DD"}}">
{{date format="D. MMMM YYYY"}}
</time>
—
{{tags}}
</div>
<h1 class="article__title js-nbsp">{{title}}</h1>
{{#if excerpt}}
<h2 class="article__summary js-nbsp">{{excerpt}}</h2>
{{/if}}
</div>
</header>
<div class="section section--roomy-bottom">
<div class="container container--article">
<div class="editor js-nbsp js-external-links js-heading-anchors">
{{content}}
</div>
</div>
</div>
</article>
{{^has tag="#no-bottom-ad"}}
{{> "bottom-ad"}}
{{/has}}
{{/post}}
{{#get "posts"
filter="primary_tag:clanky"
include="authors,tags"
order="published_at DESC"
limit="3"
as |related|
}}
{{#if related}}
{{> "related-posts" posts=related}}
{{/if}}
{{/get}}
</main>
{{> "footer"}}
{{#contentFor "styles"}}
{{> "external/prism-css"}}
{{/contentFor}}
{{#contentFor "scripts"}}
{{> "external/prism-js"}}
{{/contentFor}}