2013-05-11 10:16:11 +00:00
|
|
|
|
{{!< default}}
|
2017-06-13 18:07:26 +00:00
|
|
|
|
|
2017-05-15 20:03:47 +00:00
|
|
|
|
{{!-- The tag above means: insert everything in this file
|
|
|
|
|
into the {body} of the default.hbs template --}}
|
|
|
|
|
|
2019-10-21 05:43:34 +00:00
|
|
|
|
<header class="site-header">
|
|
|
|
|
{{> site-header}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
</header>
|
2013-08-11 14:39:25 +00:00
|
|
|
|
|
2016-05-08 08:50:20 +00:00
|
|
|
|
{{!-- Everything inside the #post tags pulls data from the post --}}
|
2014-09-25 14:35:06 +00:00
|
|
|
|
{{#post}}
|
|
|
|
|
|
2018-04-17 20:19:05 +00:00
|
|
|
|
<main id="site-main" class="site-main outer">
|
2017-05-15 20:03:47 +00:00
|
|
|
|
<div class="inner">
|
2013-09-01 15:02:37 +00:00
|
|
|
|
|
2017-06-05 11:19:29 +00:00
|
|
|
|
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
|
2014-08-05 19:44:31 +00:00
|
|
|
|
|
2017-05-15 20:03:47 +00:00
|
|
|
|
<header class="post-full-header">
|
2019-10-21 05:43:34 +00:00
|
|
|
|
|
|
|
|
|
{{#if primary_tag}}
|
|
|
|
|
<section class="post-full-tags">
|
2017-08-10 14:10:17 +00:00
|
|
|
|
{{#primary_tag}}
|
2019-10-21 05:43:34 +00:00
|
|
|
|
<a href="{{url}}">{{name}}</a>
|
2017-08-10 14:10:17 +00:00
|
|
|
|
{{/primary_tag}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
</section>
|
2019-10-21 05:43:34 +00:00
|
|
|
|
{{/if}}
|
|
|
|
|
|
2017-05-15 20:03:47 +00:00
|
|
|
|
<h1 class="post-full-title">{{title}}</h1>
|
2019-10-21 05:43:34 +00:00
|
|
|
|
|
|
|
|
|
{{#if custom_excerpt}}
|
|
|
|
|
<p class="post-full-custom-excerpt">{{custom_excerpt}}</p>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
<div class="post-full-byline">
|
|
|
|
|
|
|
|
|
|
<section class="post-full-byline-content">
|
|
|
|
|
|
|
|
|
|
<ul class="author-list">
|
|
|
|
|
{{#foreach authors}}
|
|
|
|
|
<li class="author-list-item">
|
|
|
|
|
|
|
|
|
|
<div class="author-card">
|
|
|
|
|
{{#if profile_image}}
|
|
|
|
|
<img class="author-profile-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
|
|
|
|
|
{{else}}
|
|
|
|
|
<div class="author-profile-image">{{> "icons/avatar"}}</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
<div class="author-info">
|
|
|
|
|
{{#if bio}}
|
|
|
|
|
<div class="bio">
|
|
|
|
|
<h2>{{name}}</h2>
|
|
|
|
|
<p>{{bio}}</p>
|
|
|
|
|
<p><a href="{{url}}">More posts</a> by {{name}}.</p>
|
|
|
|
|
</div>
|
|
|
|
|
{{else}}
|
|
|
|
|
<h2>{{name}}</h2>
|
|
|
|
|
<p>Read <a href="{{url}}">more posts</a> by this author.</p>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{{#if profile_image}}
|
|
|
|
|
<a href="{{url}}" class="author-avatar">
|
|
|
|
|
<img class="author-profile-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
|
|
|
|
|
</a>
|
|
|
|
|
{{else}}
|
|
|
|
|
<a href="{{url}}" class="author-avatar author-profile-image">{{> "icons/avatar"}}</a>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
{{/foreach}}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<section class="post-full-byline-meta">
|
|
|
|
|
<h4 class="author-name">{{authors}}</h4>
|
|
|
|
|
<div class="byline-meta-content">
|
|
|
|
|
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time>
|
|
|
|
|
<span class="byline-reading-time"><span class="bull">•</span> {{reading_time}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2017-05-15 20:03:47 +00:00
|
|
|
|
</header>
|
2014-07-31 13:54:34 +00:00
|
|
|
|
|
2017-05-15 20:03:47 +00:00
|
|
|
|
{{#if feature_image}}
|
2018-12-17 12:25:57 +00:00
|
|
|
|
<figure class="post-full-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="(max-width: 800px) 400px,
|
2019-10-21 05:43:34 +00:00
|
|
|
|
(max-width: 1170px) 1170px,
|
|
|
|
|
2000px"
|
2018-12-17 12:25:57 +00:00
|
|
|
|
src="{{img_url feature_image size="xl"}}"
|
|
|
|
|
alt="{{title}}"
|
|
|
|
|
/>
|
2014-07-21 18:19:49 +00:00
|
|
|
|
</figure>
|
|
|
|
|
{{/if}}
|
2014-07-31 13:54:34 +00:00
|
|
|
|
|
2017-05-15 20:03:47 +00:00
|
|
|
|
<section class="post-full-content">
|
2018-07-23 11:20:46 +00:00
|
|
|
|
<div class="post-content">
|
|
|
|
|
{{content}}
|
|
|
|
|
</div>
|
2014-07-20 14:43:44 +00:00
|
|
|
|
</section>
|
2013-09-01 19:45:19 +00:00
|
|
|
|
|
2016-05-08 08:50:20 +00:00
|
|
|
|
{{!-- Email subscribe form at the bottom of the page --}}
|
2019-10-21 05:43:34 +00:00
|
|
|
|
{{#if @labs.members}}
|
|
|
|
|
{{> subscribe-form}}
|
2016-05-08 08:50:20 +00:00
|
|
|
|
{{/if}}
|
|
|
|
|
|
2017-06-08 07:19:22 +00:00
|
|
|
|
{{!--
|
2017-06-05 11:19:29 +00:00
|
|
|
|
<section class="post-full-comments">
|
2018-04-11 09:04:32 +00:00
|
|
|
|
If you want to embed comments, this is a good place to do it!
|
2017-06-05 11:19:29 +00:00
|
|
|
|
</section>
|
2017-06-08 07:19:22 +00:00
|
|
|
|
--}}
|
2017-06-05 11:19:29 +00:00
|
|
|
|
|
2017-05-15 20:03:47 +00:00
|
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
</div>
|
2014-01-15 09:58:34 +00:00
|
|
|
|
</main>
|
2014-09-25 14:35:06 +00:00
|
|
|
|
|
2016-05-08 08:50:20 +00:00
|
|
|
|
{{!-- Links to Previous/Next posts --}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
<aside class="read-next outer">
|
|
|
|
|
<div class="inner">
|
|
|
|
|
<div class="read-next-feed">
|
2017-09-07 12:31:42 +00:00
|
|
|
|
{{#if primary_tag}}
|
2017-08-10 14:10:17 +00:00
|
|
|
|
{{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}}
|
2017-07-28 15:10:54 +00:00
|
|
|
|
{{#if related_posts}}
|
2019-10-21 05:43:34 +00:00
|
|
|
|
<article class="read-next-card">
|
2017-06-12 09:01:00 +00:00
|
|
|
|
<header class="read-next-card-header">
|
2017-08-10 14:10:17 +00:00
|
|
|
|
{{#../primary_tag}}
|
2019-10-21 05:43:34 +00:00
|
|
|
|
<h3><span>More in</span> <a href="{{url}}">{{name}}</a></h3>
|
2017-08-10 14:10:17 +00:00
|
|
|
|
{{/../primary_tag}}
|
2017-06-12 09:01:00 +00:00
|
|
|
|
</header>
|
|
|
|
|
<div class="read-next-card-content">
|
2017-06-13 17:51:08 +00:00
|
|
|
|
<ul>
|
2017-07-28 15:10:54 +00:00
|
|
|
|
{{#foreach related_posts}}
|
2019-10-21 05:43:34 +00:00
|
|
|
|
<li>
|
|
|
|
|
<h4><a href="{{url}}">{{title}}</a></h4>
|
|
|
|
|
<div class="read-next-card-meta">
|
|
|
|
|
<p><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> –
|
|
|
|
|
{{reading_time}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
2017-06-12 09:01:00 +00:00
|
|
|
|
{{/foreach}}
|
2017-06-13 17:51:08 +00:00
|
|
|
|
</ul>
|
2017-06-12 09:01:00 +00:00
|
|
|
|
</div>
|
2017-06-13 17:51:08 +00:00
|
|
|
|
<footer class="read-next-card-footer">
|
2019-10-21 05:43:34 +00:00
|
|
|
|
<a href="{{#../primary_tag}}{{url}}{{/../primary_tag}}">{{plural meta.pagination.total empty='No posts' singular='% post' plural='See all % posts'}}
|
|
|
|
|
→</a>
|
2017-06-13 17:51:08 +00:00
|
|
|
|
</footer>
|
2017-06-12 09:01:00 +00:00
|
|
|
|
</article>
|
2017-07-28 15:10:54 +00:00
|
|
|
|
{{/if}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
{{/get}}
|
2017-09-07 12:31:42 +00:00
|
|
|
|
{{/if}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
|
2017-06-12 09:01:00 +00:00
|
|
|
|
{{!-- If there's a next post, display it using the same markup included from - partials/post-card.hbs --}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
{{#next_post}}
|
2017-06-12 09:01:00 +00:00
|
|
|
|
{{> "post-card"}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
{{/next_post}}
|
|
|
|
|
|
2017-06-12 09:01:00 +00:00
|
|
|
|
{{!-- If there's a previous post, display it using the same markup included from - partials/post-card.hbs --}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
{{#prev_post}}
|
2017-06-12 09:01:00 +00:00
|
|
|
|
{{> "post-card"}}
|
2017-05-15 20:03:47 +00:00
|
|
|
|
{{/prev_post}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-03-27 17:10:31 +00:00
|
|
|
|
</aside>
|
|
|
|
|
|
2014-09-25 14:35:06 +00:00
|
|
|
|
{{/post}}
|
2017-06-08 07:19:22 +00:00
|
|
|
|
|
|
|
|
|
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
|
|
|
|
|
{{#contentFor "scripts"}}
|
|
|
|
|
<script>
|
2019-10-20 13:55:06 +00:00
|
|
|
|
$(document).ready(function () {
|
2019-10-21 09:02:05 +00:00
|
|
|
|
// FitVids - start
|
2019-10-20 13:55:06 +00:00
|
|
|
|
var $postContent = $(".post-full-content");
|
|
|
|
|
$postContent.fitVids();
|
2019-10-21 09:02:05 +00:00
|
|
|
|
// FitVids - end
|
|
|
|
|
|
|
|
|
|
// Replace nav with title on scroll - start
|
|
|
|
|
Casper.stickyNavTitle({
|
|
|
|
|
navSelector: '.site-nav-main',
|
|
|
|
|
titleSelector: '.post-full-title',
|
|
|
|
|
activeClass: 'nav-post-title-active'
|
|
|
|
|
});
|
|
|
|
|
// Replace nav with title on scroll - end
|
|
|
|
|
|
|
|
|
|
// Hover on avatar
|
|
|
|
|
var hoverTimeout;
|
|
|
|
|
$('.author-list-item').hover(function () {
|
|
|
|
|
var $this = $(this);
|
|
|
|
|
|
|
|
|
|
clearTimeout(hoverTimeout);
|
|
|
|
|
|
|
|
|
|
$('.author-card').removeClass('hovered');
|
|
|
|
|
$(this).children('.author-card').addClass('hovered');
|
|
|
|
|
|
|
|
|
|
}, function () {
|
|
|
|
|
var $this = $(this);
|
|
|
|
|
|
|
|
|
|
hoverTimeout = setTimeout(function () {
|
|
|
|
|
$this.children('.author-card').removeClass('hovered');
|
|
|
|
|
}, 800);
|
|
|
|
|
});
|
2019-10-20 13:55:06 +00:00
|
|
|
|
});
|
2017-06-08 07:19:22 +00:00
|
|
|
|
</script>
|
|
|
|
|
{{/contentFor}}
|