-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.hbs
64 lines (49 loc) · 1.84 KB
/
post.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
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<main id="site-main" class="site-main outer">
{{#if feature_image}}
<style>
.hero-back {
background-image:url({{img_url feature_image size="xl"}}){{^has tag="#art-white,#art-black,#art-clear"}}, linear-gradient(to right, #6000FF, #00EAD2){{/has}};
}
</style>
<div class="post-full-image">
<header class="feature-header">
<div class="inner">
<h1 class="feature-title">{{title}}</h1>
<div class="feature-excerpt">{{excerpt}}</div>
<div class="feature-date">Posted {{date format="D MMMM YYYY"}}</div>
<div class="post-full-byline">
{{> "byline" hide_read_more=1}}
</div>
</div>
</header>
<div class="hero-back"></div>
</div>
{{/if}}
<div class="inner">
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
<div class="post-title-container">
<div class="post-full-title">{{title}}</div>
<div class="post-full-byline">
{{> "byline" hide_read_more=1}}
</div>
</div>
<section class="post-full-content">
<div class="post-content">
{{content}}
{{> "developer-cta"}}
</div>
</section>
{{> "post-content-engagement-footer"}}
</article>
</div>
</main>
{{> "post-further-reading"}}
{{!-- Floating header which appears on-scroll, included from includes/floating-header.hbs --}}
{{> floating-header}}
{{/post}}
{{> "post-content-scripts"}}