mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 11:37:38 +00:00
40 lines
1.2 KiB
Handlebars
40 lines
1.2 KiB
Handlebars
{{!< default}}
|
|
|
|
{{!-- The tag above means: insert everything in this file
|
|
into the {body} tag of the default.hbs template --}}
|
|
|
|
|
|
{{#post}}
|
|
{{!-- Everything inside the #post block pulls data from the page --}}
|
|
|
|
<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="{{title}}"
|
|
/>
|
|
</figure>
|
|
{{/if}}
|
|
</header>
|
|
|
|
<section class="gh-content gh-canvas">
|
|
|
|
<h1 class="article-title">{{title}}</h1>
|
|
|
|
{{content}}
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
{{/post}} |