forked from TryGhost/Journal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
94 lines (74 loc) · 3.58 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{{!< default}}
{{#post}}
<main id="gh-main" class="gh-main gh-outer">
<div class="gh-inner">
<article class="gh-article gh-latest {{post_class}}">
<header class="gh-article-header">
{{#is "post"}}
<span class="gh-article-meta">
{{#primary_author}}By <a href="{{url}}">{{name}}</a>{{/primary_author}}
{{#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>
{{/is}}
<h1 class="gh-article-title">{{title}}</h1>
{{#if custom_excerpt}}
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
{{/if}}
{{> "feature-image"}}
</header>
</article>
<div class="gh-wrapper">
<section class="gh-section">
<article class="gh-article {{post_class}}">
<h2 class="gh-section-title">{{title}}</h2>
<div class="gh-content gh-canvas gh-post-content">
{{content}}
</div>
{{#is "post"}}
<footer class="gh-article-footer gh-canvas">
<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>
{{/is}}
</article>
</section>
<aside class="gh-sidebar">
{{#get "posts" filter="featured:true" limit="all" as |featured|}}
{{#if featured}}
<section class="gh-section">
<h3 class="gh-section-title">Featured</h3>
<div class="gh-featured gh-feed">
{{#foreach featured}}
{{> loop}}
{{/foreach}}
</div>
</section>
{{/if}}
{{/get}}
</aside>
</div>
</div>
</main>
{{/post}}