-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
executable file
·56 lines (43 loc) · 1.4 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
{{!< default}}
<main class="site-main">
{{#post}}
<article class="{{post_class}}">
<header class="gh-article-header gh-canvas">
<h1 class="gh-article-title">{{title}}</h1>
<div class="post-meta">
Last updated on
<time datetime="{{date format="YYYY-MM-DD"}}">{{date updated_at}}</time>
</div>
{{> "post-image"}}
</header>
<div class="gh-content gh-canvas">
{{content}}
</div>
<div class="pagination-container gh-canvas">
<nav class="pagination">
<div class="pagination-left">
{{#prev_post}}
<a class="newer-posts" href="{{url}}">
<span class="pagination-label">Previous</span>
{{title}}
</a>
{{/prev_post}}
</div>
<div class="pagination-right">
{{#next_post}}
<a class="older-posts" href="{{url}}">
<span class="pagination-label">Next</span>
{{title}}
</a>
{{/next_post}}
</div>
</nav>
</div>
{{#if comments}}
<div class="gh-comments gh-canvas">
{{comments}}
</div>
{{/if}}
</article>
{{/post}}
</main>