-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom-header.hbs
More file actions
39 lines (33 loc) · 1.11 KB
/
custom-header.hbs
File metadata and controls
39 lines (33 loc) · 1.11 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
{{!< default}}
{{#post}}
<div class="image-header" style="background-image: url('{{img_url feature_image}}')">
<h1>{{ title }}</h1>
</div>
<div class="page-width">
{{^is "page"}}
{{> "breadcrumbs"}}
{{/is}}
<article class="{{post_class}}">
<header class="post-header">
<span>{{date published_at format="MMMM DD, YYYY" }}</span>
</header>
<section class="post-content">
{{content}}
</section>
</article>
{{/post}}
{{#is "post" }}
{{#get 'posts' include="tags,authors" filter="primary_tag:{{post.primary_tag.slug}}+id:-{{post.id}}"}}
<div class="featured-posts">
<h2>Similar Articles</h2>
<div class="posts-inline">
<div class="posts-inline">
{{#foreach posts limit="3" order="published_at desc"}}
{{> "post-card" }}
{{/foreach}}
</div>
</div>
</div>
{{/get}}
{{/is}}
</div>