-
-
Notifications
You must be signed in to change notification settings - Fork 200
/
custom-post-sidebar.hbs
55 lines (43 loc) · 2.38 KB
/
custom-post-sidebar.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
{{!-- Layout --}}
{{!< default}}
{{#post}}
{{!-- Class for <body> --}}
{{#contentFor "special_body_class"}}is-article is-sidebar is-canvas-full{{/contentFor}}
<div class="container mx-auto px-4 py-vmin8">
<div class="max-w-1100 max-w mx-auto grid gap-10 xl:gap-20 lg:grid-cols-sidebar">
<article>
<header class="story-post-header">
<h1 class="text-4xl leading-tight text-title mb-5">{{title}}</h1>
{{#if custom_excerpt}}<p class="post-excerpt my-6 text-xl text-gray-500">{{custom_excerpt}}</p>{{/if}}
{{!-- Author - Primary Tag - Datetime - Read time - ./partials/components/author-meta.hbs --}}
{{> "components/author-meta"}}
{{#if feature_image}}
<figure class="story-post-media mt-8 relative">
<img class="story-img block w-full object-cover object-center simply-zoom rounded-lg shadow-3xl overflow-hidden"
src="{{img_url feature_image size="m"}}"
srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w"
sizes="(max-width: 1000px) 400px, 600px"
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
/>
{{#if feature_image_caption}}<figcaption class="post-figcaption">{{feature_image_caption}}</figcaption>{{/if}}
</figure>
{{/if}}
</header>
<section id="post-body" class="post-body relative godo-canvas {{#match @custom.post_font "=" "font-serif"}}font-serif{{else}}font-sans{{/match}}">{{content}}</section>
{{!-- Tags - ./partials/components/tags,hbs --}}
<footer class="post-footer godo-canvas pt-10">
{{> "components/tags"}}
{{!-- Social Share - ./partials/components/social-share --}}
{{> "components/social-share" Tracking_name="Footer" class="block"}}
</footer>
</article>
{{!-- Sidebar - partials/sidebar/sidebar.hbs --}}
{{>"sidebar/sidebar"}}
</div>
</div>
{{/post}}
{{!-- 6 Related Articles - partials/article/article-related.hbs --}}
{{> "article/article-related"}}
{{!-- Post Commets - partials/article/article-comments.hbd --}}
{{#post}}{{> "article/article-comments"}}{{/post}}