forked from TryGhost/Headline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-wide-feature-image.hbs
60 lines (56 loc) · 2.27 KB
/
custom-wide-feature-image.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
50
51
52
53
54
55
56
57
58
59
60
{{!< default}}
<main class="gh-main">
{{#post}}
<article class="gh-article {{post_class}}">
<header class="gh-article-header gh-canvas">
{{#if feature_image}}
<figure class="gh-article-image">
<img
loading="lazy"
srcset="{{img_url feature_image size="s" format="webp"}} 300w,
{{img_url feature_image size="m" format="webp"}} 720w,
{{img_url feature_image size="l" format="webp"}} 960w,
{{img_url feature_image size="xl" format="webp"}} 1200w,
{{img_url feature_image size="xxl" format="webp"}} 2000w"
sizes="(max-width: 1200px) 100vw, 1200px"
src="{{img_url feature_image size="xl" format="webp"}}"
alt="{{title}}"
>
{{#if feature_image_caption}}
<figcaption>{{feature_image_caption}}</figcaption>
{{/if}}
</figure>
{{/if}}
{{#if primary_tag}}
<a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
{{/if}}
<h1 class="gh-article-title">{{title}}</h1>
</header>
{{#is "post"}}
<div class="gh-author-criptonaut">
{{#if custom_excerpt}}
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
{{/if}}
{{> "post-meta"}}
</div>
<div class="gh-full-content">
<aside class="gh-sidebar" id="sidebar-toc">
{{#if reading_time}}
<h3>
{{reading_time minute="⌚ > 1 de libertad" minutes="⌚ % de libertad"}}
</h3>
{{/if}}
<div class="toc">
</div>
</aside>
<section class="gh-content gh-canvas">
{{content}}
{{> "comments"}}
</section>
{{/is}}
</div>
</article>
{{/post}}
{{> "related-posts"}}
</main>
{{#contentFor "body_class"}} has-wide-image{{/contentFor}}