-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
post.hbs
65 lines (52 loc) · 2.13 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
{{!< default}}
{{#post}}
<main id="gh-main" class="gh-main">
<article class="gh-article {{post_class}}">
<header class="gh-article-header gh-canvas">
<span class="gh-article-meta">
By {{authors}}
{{#if primary_tag}}
in
<a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
{{/if}}
—
<time datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
</span>
<h1 class="gh-article-title">{{title}}</h1>
{{#if custom_excerpt}}
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
{{/if}}
{{> "feature-image"}}
</header>
<div class="gh-content gh-canvas">
{{content}}
</div>
{{#if comments}}
<div class="gh-comments gh-canvas">
{{comments}}
</div>
{{/if}}
<footer class="gh-article-footer gh-canvas{{#if @site.comments_enabled}}{{#unless @member}} no-border{{/unless}}{{#unless access}} no-border{{/unless}}{{/if}}">
<nav class="gh-navigation">
<div class="gh-navigation-previous">
{{#prev_post}}
<a class="gh-navigation-link" href="{{url}}">
<span class="gh-navigation-label">{{> icons/arrow-left}} Previous issue</span>
<h4 class="gh-navigation-title">{{title}}</h4>
</a>
{{/prev_post}}
</div>
<div class="gh-navigation-middle"></div>
<div class="gh-navigation-next">
{{#next_post}}
<a class="gh-navigation-link" href="{{url}}">
<span class="gh-navigation-label">Next issue {{> icons/arrow-right}}</span>
<h4 class="gh-navigation-title">{{title}}</h4>
</a>
{{/next_post}}
</div>
</nav>
</footer>
</article>
</main>
{{/post}}