-
Notifications
You must be signed in to change notification settings - Fork 5
/
post.hbs
executable file
·54 lines (52 loc) · 1.63 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. }}
{{! The big featured header on the homepage, with the site logo and description }}
<!-- Site header area, dark backbround, or grab image -->
<header class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<div class="container">
<!-- Vertically center -->
<div class="vertical">
<div class="site-head-content inner">
{{#if @blog.logo}}
<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>
{{else}}
<h1 class="blog-title"><a href="{{@blog.url}}">{{@blog.title}}</a></h1>
{{/if}}
<h2 class="blog-description">
{{#post}}
{{{title}}}
{{/post}}
</h2>
</div>
</div><!-- END .vertical -->
</div><!-- END .container -->
</header><!-- END .site-head -->
<div class="container">
<main class="content" role="main">
<article class="{{post_class}}">
{{#post}}
<header class="post-header">
<h2 class="post-title">
<a href="{{url}}">{{{title}}}</a>
<span class="post-meta">
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time>
</span>
</h2>
<div class="tags">
Post Tags:
<span>
{{tags prefix=""}}
</span>
</div>
</header>
<section class="post-excerpt">
{{content}}
</section>
<section class="author">
<h4>{{author.name}}</h4>
</section>
{{/post}}
</article>
</main><!-- END role="main" -->
</div><!-- END .container -->