-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.hbs
29 lines (25 loc) · 863 Bytes
/
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
{{!< default}}
<div class="page-width">
{{#post}}
<article class="{{post_class}}">
{{> "breadcrumbs"}}
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
<span>{{date published_at format="MMMM DD, YYYY" }}</span>
</header>
<section class="post-content">
{{content}}
</section>
</article>
{{/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">
{{#foreach posts limit="3" order="published_at desc"}}
{{> "post-card" }}
{{/foreach}}
</div>
</div>
{{/get}}
</div>