weflock/page.hbs

45 lines
1.5 KiB
Handlebars
Raw Normal View History

{{!< default}}
2021-03-03 08:11:16 -05:00
2017-05-31 14:09:50 -04:00
{{!-- The tag above means: insert everything in this file
2021-03-03 08:11:16 -05:00
into the {body} tag of the default.hbs template --}}
2021-03-03 08:11:16 -05:00
{{#post}}
2021-03-03 08:11:16 -05:00
{{!-- Everything inside the #post block pulls data from the page --}}
2021-09-22 03:24:17 -04:00
<main id="site-main" class="site-main">
<article class="article {{post_class}}">
<header class="article-header gh-canvas">
{{#if feature_image}}
<figure class="article-image">
{{!-- This is a responsive image, it loads different sizes depending on device
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
<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}}
2021-09-22 03:24:17 -04:00
</header>
2021-03-03 08:11:16 -05:00
2021-09-22 03:24:17 -04:00
<section class="gh-content gh-canvas">
2021-03-09 22:02:35 -05:00
2021-09-22 03:24:17 -04:00
<h1 class="article-title">{{title}}</h1>
2021-03-09 22:02:35 -05:00
2021-09-22 03:24:17 -04:00
{{content}}
2021-03-09 22:02:35 -05:00
2021-09-22 03:24:17 -04:00
</section>
2021-03-03 08:11:16 -05:00
2021-09-22 03:24:17 -04:00
</article>
</main>
2017-05-31 14:09:50 -04:00
2021-03-04 17:22:45 -05:00
{{/post}}