-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpage.hbs
30 lines (26 loc) · 1.13 KB
/
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
30
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{#post}}
<article class="page relative pb-vmin8">
<header class="page-header relative flex items-center justify-center {{#unless feature_image}}text-title pt-vmin8{{else}}text-white h-96{{/unless}}">
{{#if feature_image}}
<img class="post-img inset-image brightness-75"
srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1000w,
{{img_url feature_image size="xl"}} 2000w"
sizes="(max-width: 800px) 400px,
(max-width: 1170px) 700px,
1400px"
src="{{img_url feature_image size="xl"}}"
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
/>
{{/if}}
<h1 class="page-title text-44 relative z-3 max-w-3xl mx-4">{{title}}</h1>
</header>
<div class="post-body godo-canvas font-serif">
{{content}}
</div>
</article>
{{/post}}