forked from TryGhost/Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.hbs
29 lines (24 loc) · 813 Bytes
/
page.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
{{!< default}}
{{#post}}
<article class="gh-article {{post_class}}">
{{#match @page.show_title_and_feature_image}}
<header class="gh-header gh-canvas">
<h1 class="gh-title">{{title}}</h1>
{{#if custom_excerpt}}
<p class="gh-excerpt">{{custom_excerpt}}</p>
{{/if}}
{{#if feature_image}}
<figure class="gh-feature-image">
<img src="{{feature_image}}" alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}" />
{{#if feature_image_caption}}
<figcaption>{{feature_image_caption}}</figcaption>
{{/if}}
</figure>
{{/if}}
</header>
{{/match}}
<div class="gh-content gh-canvas">
{{content}}
</div>
</article>
{{/post}}