forked from xiaoluoboding/ghost-theme-kaldorei
-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.hbs
78 lines (68 loc) · 2.53 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
<header class="main-header">
<nav class="container main-nav clearfix">
<div class="main-nav__brand">
<a class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
</div>
{{#if @blog.navigation}}
{{navigation}}
{{/if}}
</nav>
</header>
<main id="container" class="container" role="main">
<div id="content" class="content col-sm-12 col-md-9 col-lg-9">
<article class="{{post_class}}">
<header class="post-header">
<h1 class="post-title"><a href="{{url}}">{{title}}</a></h1>
<section class="post-meta">
<span class="post-meta-item">
<i class="fa fa-user"></i>
{{authors limit="1"}}
</span>
<span class="post-meta-item">
<i class="fa fa-clock-o"></i>
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date timeago="ture"}}</time>
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">({{date format="YYYY-MM-DD"}})</time>
</span>
<span class="post-meta-item post-meta-tags">
<i class="fa fa-tag"></i>
{{tags}}
</span>
<span class="post-meta-item pull-right">
</span>
</section>
</header>
<section class="post-content">
{{content}}
</section>
<footer class="post-footer">
{{> "post_author"}}
</footer>
</article>
<aside class="post-nav">
{{#prev_post}}
<span class="post-nav-prev">
<a href="{{url}}">
<i class="fa fa-chevron-left"></i>
{{title}}
</a>
</span>
{{/prev_post}}
{{#next_post}}
<span class="post-nav-next" >
<a href="{{url}}">
{{title}}
<i class="fa fa-chevron-right"></i>
</a>
</span>
{{/next_post}}
</aside>
{{> "comments"}}
</div>
{{> sidebar}}
</main>
{{/post}}