forked from TryGhost/Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.hbs
29 lines (24 loc) · 867 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="{{post_class}}">
{{#match @page.show_title_and_feature_image}}
<header>
<h1 class="font-bold text-4xl">{{title}}</h1>
{{#if custom_excerpt}}
<p class="italic mt-5 mb-5">{{custom_excerpt}}</p>
{{/if}}
{{#if feature_image}}
<figure class="mt-5 mb-5">
<img src="{{feature_image}}" alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}" />
{{#if feature_image_caption}}
<figcaption class="text-sm">{{feature_image_caption}}</figcaption>
{{/if}}
</figure>
{{/if}}
</header>
{{/match}}
<article class="prose prose-neutral mt-5">
{{content}}
</article>
</article>
{{/post}}