2013-05-11 06:16:11 -04:00
|
|
|
{{!< default}}
|
2017-05-15 16:03:47 -04:00
|
|
|
{{!-- The tag above means: insert everything in this file
|
|
|
|
into the {body} of the default.hbs template --}}
|
|
|
|
|
|
|
|
{{!-- The big featured header, it uses blog cover image as a BG if available --}}
|
|
|
|
<header class="site-header outer">
|
|
|
|
<div class="inner">
|
|
|
|
<nav class="site-nav">
|
|
|
|
<div class="site-nav-left">
|
|
|
|
{{#if @blog.logo}}
|
|
|
|
<a class="site-nav-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>
|
2017-06-12 05:01:00 -04:00
|
|
|
{{else}}
|
|
|
|
<a class="site-nav-logo" href="{{@blog.url}}">{{@blog.title}}</a>
|
2017-05-15 16:03:47 -04:00
|
|
|
{{/if}}
|
|
|
|
{{#if @blog.navigation}}
|
|
|
|
{{!-- The blog navigation links from /ghost/settings/design --}}
|
|
|
|
{{navigation}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="site-nav-right">
|
|
|
|
<div class="social-links">
|
|
|
|
{{#if @blog.facebook}}
|
2017-06-13 08:48:06 -04:00
|
|
|
<a class="social-link social-link-fb" href="{{facebook_url @blog.facebook}}">{{> "icons/facebook"}}</a>
|
2017-05-15 16:03:47 -04:00
|
|
|
{{/if}}
|
|
|
|
{{#if @blog.twitter}}
|
2017-06-13 08:48:06 -04:00
|
|
|
<a class="social-link social-link-tw" href="{{twitter_url @blog.twitter}}">{{> "icons/twitter"}}</a>
|
2017-05-15 16:03:47 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{#if @labs.subscribers}}
|
|
|
|
<a class="subscribe-button" href="{{@blog.url}}/subscribe/">Subscribe</a>
|
|
|
|
{{else}}
|
|
|
|
<a class="rss-button" href="http://cloud.feedly.com/#subscription/feed/{{@blog.url}}/rss/" target="_blank">{{> "icons/rss"}}</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</header>
|
2013-08-11 10:39:25 -04:00
|
|
|
|
2016-05-08 04:50:20 -04:00
|
|
|
{{!-- Everything inside the #post tags pulls data from the post --}}
|
2014-09-25 10:35:06 -04:00
|
|
|
{{#post}}
|
|
|
|
|
2017-05-31 14:09:50 -04:00
|
|
|
{{!-- Floating header which appears on-scroll, pulled from includes/floating-header.hbs --}}
|
2017-05-15 16:03:47 -04:00
|
|
|
{{> floating-header}}
|
2013-09-06 13:50:23 -04:00
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
<main id="site-main" class="site-main outer" role="main">
|
|
|
|
<div class="inner">
|
2013-09-01 11:02:37 -04:00
|
|
|
|
2017-06-05 07:19:29 -04:00
|
|
|
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
|
2014-08-05 15:44:31 -04:00
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
<header class="post-full-header">
|
|
|
|
<section class="post-full-meta">
|
|
|
|
<time class="post-full-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMMM YYYY"}}</time>
|
|
|
|
{{#if tags}}
|
2017-05-31 14:09:50 -04:00
|
|
|
<span class="date-divider">/</span> <a href="{{@blog.url}}tag/{{tags.[0].slug}}">{{tags.[0].name}}</a>
|
2017-05-15 16:03:47 -04:00
|
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
<h1 class="post-full-title">{{title}}</h1>
|
|
|
|
</header>
|
2014-07-31 09:54:34 -04:00
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
{{#if feature_image}}
|
|
|
|
<figure class="post-full-image" style="background-image: url({{feature_image}})">
|
2014-07-21 14:19:49 -04:00
|
|
|
</figure>
|
|
|
|
{{/if}}
|
2014-07-31 09:54:34 -04:00
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
<section class="post-full-content">
|
|
|
|
{{content}}
|
2014-07-20 10:43:44 -04:00
|
|
|
</section>
|
2013-09-01 15:45:19 -04:00
|
|
|
|
2016-05-08 04:50:20 -04:00
|
|
|
{{!-- Email subscribe form at the bottom of the page --}}
|
|
|
|
{{#if @labs.subscribers}}
|
2017-05-15 16:03:47 -04:00
|
|
|
<section class="subscribe-form">
|
|
|
|
<h3 class="subscribe-form-title">Subscribe to {{@blog.title}}</h3>
|
|
|
|
<p>Get the latest posts delivered right to your inbox</p>
|
|
|
|
{{subscribe_form placeholder="youremail@example.com"}}
|
2016-05-08 04:50:20 -04:00
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
<footer class="post-full-footer">
|
|
|
|
|
|
|
|
{{!-- Everything inside the #author tags pulls data from the author --}}
|
|
|
|
<section class="author-card">
|
|
|
|
{{#author}}
|
|
|
|
|
|
|
|
{{#if profile_image}}
|
|
|
|
<figure class="author-card-image">
|
|
|
|
<a class="img" href="{{url}}" style="background-image: url({{profile_image}})"><span class="hidden">{{name}}'s Picture</span></a>
|
|
|
|
</figure>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<section class="author-card-content">
|
|
|
|
<h4><a href="{{url}}">{{name}}</a></h4>
|
|
|
|
|
|
|
|
{{#if bio}}
|
|
|
|
<p>{{bio}}</p>
|
|
|
|
{{else}}
|
|
|
|
<p>Read <a href="{{url}}">more posts</a> by this author.</p>
|
|
|
|
{{/if}}
|
|
|
|
<div class="author-card-meta">
|
|
|
|
{{#if location}}<span class="author-card-location">{{location}}</span>{{/if}}
|
|
|
|
{{#if website}}<span class="author-card-link"><a href="{{website}}">{{website}}</a></span>{{/if}}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{/author}}
|
|
|
|
</section>
|
|
|
|
|
2017-06-05 07:19:29 -04:00
|
|
|
<section class="post-full-tags">
|
|
|
|
{{tags}}
|
2017-05-15 16:03:47 -04:00
|
|
|
</section>
|
|
|
|
|
|
|
|
</footer>
|
|
|
|
|
2017-06-08 03:19:22 -04:00
|
|
|
{{!--
|
2017-06-05 07:19:29 -04:00
|
|
|
<section class="post-full-comments">
|
|
|
|
<div id="disqus_thread"></div>
|
|
|
|
<script>
|
|
|
|
var disqus_config = function () {
|
2017-06-08 03:19:22 -04:00
|
|
|
this.page.url = '{{url absolute="true"}}';
|
|
|
|
this.page.identifier = 'ghost-{{id}}';
|
2017-06-05 07:19:29 -04:00
|
|
|
};
|
|
|
|
(function() {
|
2017-06-08 03:19:22 -04:00
|
|
|
var d = document, s = d.createElement('script');
|
|
|
|
s.src = 'https://test-apkdzgmqhj.disqus.com/embed.js';
|
|
|
|
s.setAttribute('data-timestamp', +new Date());
|
|
|
|
(d.head || d.body).appendChild(s);
|
2017-06-05 07:19:29 -04:00
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
</section>
|
2017-06-08 03:19:22 -04:00
|
|
|
--}}
|
2017-06-05 07:19:29 -04:00
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
</article>
|
|
|
|
|
|
|
|
</div>
|
2014-01-15 04:58:34 -05:00
|
|
|
</main>
|
2014-09-25 10:35:06 -04:00
|
|
|
|
2016-05-08 04:50:20 -04:00
|
|
|
{{!-- Links to Previous/Next posts --}}
|
2017-05-15 16:03:47 -04:00
|
|
|
<aside class="read-next outer">
|
|
|
|
<div class="inner">
|
|
|
|
<div class="read-next-feed">
|
|
|
|
|
|
|
|
{{#get "posts" filter="tags:{{tags.[0].slug}}+id:-{{id}}" limit="3"}}
|
2017-06-12 05:01:00 -04:00
|
|
|
<article class="read-next-card"
|
|
|
|
{{#if ../tags.[0].feature_image}}
|
|
|
|
style="background-image: url({{../tags.[0].feature_image}})"
|
|
|
|
{{else}}
|
|
|
|
{{#if @blog.cover_image}}
|
|
|
|
style="background-image: url({{@blog.cover_image}})"{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
>
|
|
|
|
<header class="read-next-card-header">
|
|
|
|
<h3 class="read-next-card-header-title">Read more posts like this</h3>
|
|
|
|
</header>
|
|
|
|
<div class="read-next-divider">{{> "icons/infinity"}}</div>
|
|
|
|
<div class="read-next-card-content">
|
|
|
|
<ol>
|
|
|
|
{{#foreach posts}}
|
|
|
|
<li><a href="{{url}}">{{title}}</a></li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</article>
|
2017-05-15 16:03:47 -04:00
|
|
|
{{/get}}
|
|
|
|
|
2017-06-12 05:01:00 -04:00
|
|
|
{{!-- If there's a next post, display it using the same markup included from - partials/post-card.hbs --}}
|
2017-05-15 16:03:47 -04:00
|
|
|
{{#next_post}}
|
2017-06-12 05:01:00 -04:00
|
|
|
{{> "post-card"}}
|
2017-05-15 16:03:47 -04:00
|
|
|
{{/next_post}}
|
|
|
|
|
2017-06-12 05:01:00 -04:00
|
|
|
{{!-- If there's a previous post, display it using the same markup included from - partials/post-card.hbs --}}
|
2017-05-15 16:03:47 -04:00
|
|
|
{{#prev_post}}
|
2017-06-12 05:01:00 -04:00
|
|
|
{{> "post-card"}}
|
2017-05-15 16:03:47 -04:00
|
|
|
{{/prev_post}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-27 13:10:31 -04:00
|
|
|
</aside>
|
|
|
|
|
2014-09-25 10:35:06 -04:00
|
|
|
{{/post}}
|
2017-06-08 03:19:22 -04:00
|
|
|
|
|
|
|
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
|
|
|
|
{{#contentFor "scripts"}}
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
var $postContent = $(".post-full-content");
|
|
|
|
$postContent.fitVids();
|
|
|
|
|
|
|
|
$(window).scroll(function() {
|
|
|
|
var header = $(".floating-header");
|
|
|
|
var title = $(".post-full-title");
|
|
|
|
var trigger = title.offset().top;
|
|
|
|
var scroll = $(window).scrollTop();
|
|
|
|
|
|
|
|
if (scroll >= trigger + title.height() + 35 ) {
|
|
|
|
header.addClass("floating-active");
|
|
|
|
} else {
|
|
|
|
header.removeClass("floating-active");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{{/contentFor}}
|