-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost.hbs
54 lines (42 loc) · 1.77 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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
<article class="{{post_class}}">
{{! Each post has the blog logo at the top, with a link back to the home page }}
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
<section class="content">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 text-center">
<div class="logo">
{{#if @blog.logo}}
<a href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="" />
{{/if}}
{{@blog.title}}</a>
</div>
<div class="post">
<div class="date">{{date format="DD MMM"}}</div>
<h2><a href="{{url}}">{{{title}}}</a></h2>
<div class="subtitle">
{{#if tags}}{{tags}}{{/if}}
</div>
{{! Everything below outputs content of the the post which has been published }}
{{content}}
{{#if author}}
<!-- author box start -->
<div class="extra">
<div class="author">
{{#if author.image}}<img src="{{author.image}}" alt="" />{{/if}}
<a href="{{author.website}}">{{author.name}}</a>
</div>
</div>
<!-- author box end -->
{{/if}}
{{/post}}
</div>
</div>
</div>
</div>
</section>
<!-- Blog section END -->