2013-10-17 03:16:40 +00:00
|
|
|
{{!< default}}
|
2021-03-03 13:11:16 +00:00
|
|
|
|
2017-05-31 18:09:50 +00:00
|
|
|
{{!-- The tag above means: insert everything in this file
|
2021-03-03 13:11:16 +00:00
|
|
|
into the {body} tag of the default.hbs template --}}
|
2013-10-17 03:16:40 +00:00
|
|
|
|
2021-03-03 13:11:16 +00:00
|
|
|
|
2014-11-11 05:02:52 +00:00
|
|
|
{{#post}}
|
2021-03-03 13:11:16 +00:00
|
|
|
{{!-- Everything inside the #post block pulls data from the page --}}
|
2014-11-11 05:02:52 +00:00
|
|
|
|
2021-03-03 13:11:16 +00:00
|
|
|
<article class="article {{post_class}}">
|
2017-05-31 18:09:50 +00:00
|
|
|
|
2021-03-03 13:11:16 +00:00
|
|
|
<header class="article-header gh-canvas">
|
|
|
|
|
|
|
|
<h1 class="article-title">{{title}}</h1>
|
|
|
|
|
|
|
|
{{#if custom_excerpt}}
|
|
|
|
<p class="article-excerpt">{{custom_excerpt}}</p>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#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">
|
|
|
|
{{content}}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</article>
|
2017-05-31 18:09:50 +00:00
|
|
|
|
2014-11-11 05:02:52 +00:00
|
|
|
{{/post}}
|
2017-06-12 09:01:00 +00:00
|
|
|
|
2021-03-03 02:48:32 +00:00
|
|
|
|
2021-03-03 13:11:16 +00:00
|
|
|
{{!-- Scripts - Extra functionality for the post template --}}
|
2017-06-12 09:01:00 +00:00
|
|
|
<script>
|
2021-03-03 13:11:16 +00:00
|
|
|
$(document).ready(function () {
|
|
|
|
// FitVids - Makes video embeds responsive
|
2021-03-03 02:48:32 +00:00
|
|
|
var $postContent = $(".gh-content");
|
|
|
|
$postContent.fitVids();
|
|
|
|
});
|
2017-06-12 09:01:00 +00:00
|
|
|
</script>
|