-
Notifications
You must be signed in to change notification settings - Fork 5
/
page.hbs
49 lines (41 loc) · 1.62 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- Header ./partials/site-header.hbs --}}
{{> "site-header"}}
{{#post}}
<div class="post w-full max-w-screen-xl mx-auto px-6">
<div class="flex -mx-6 py-6">
<div class="w-full max-w-3xl mx-auto">
<article class="post-article p-6 lg:px-8 lg:py-10">
{{!-- Header --}}
<header class="post-header">
<h1 class="post-title mt-0 text-gray-800 md:text-4xl">{{title}}</h1>
</header>
{{#if feature_image}}
<figure class="post-image mt-8">
<img
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) 1170px,
2000px"
src="{{img_url feature_image size="xl"}}"
alt="{{title}}"
class="kusi-dog-zoom"
/>
</figure>
{{/if}}
{{!-- Content --}}
<section class="markdown js-markdown">
{{content}}
</section>
</article>
</div>
</div>
</div>
{{/post}}
{{!-- Footer ./partials/site-footer.hbs --}}
{{> "site-footer"}}