-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpage.hbs
More file actions
42 lines (34 loc) · 1.41 KB
/
Copy pathpage.hbs
File metadata and controls
42 lines (34 loc) · 1.41 KB
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
{{!< default}}
{{#post}}
<article class="post-container post-container--single">
<header class="post-header">
<h1 class="post-title">{{{title}}}</h1>
</header>
<section class="{{post_class}}">
{{#match @page.show_title_and_feature_image}}
<header class="article-header gh-canvas">
<h1 class="article-title">{{title}}</h1>
{{#if feature_image}}
<figure class="article-image">
<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="(min-width: 1400px) 1400px, 92vw"
src="{{img_url feature_image size="xl"}}"
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}}
{{content}}
</section>
</article>
{{> comment }}
{{/post}}
<script defer src="{{asset 'js/third_party/highlight-11.4.0.min.js'}}" onload="hljs.highlightAll()"></script>