2019-11-08 20:59:26 +00:00
|
|
|
{{!< default}}
|
2019-11-09 06:03:26 +00:00
|
|
|
|
2019-11-08 20:59:26 +00:00
|
|
|
{{#post}}
|
|
|
|
<article>
|
2019-11-09 06:03:26 +00:00
|
|
|
<div class="relative group index-header">
|
2019-11-08 20:59:26 +00:00
|
|
|
{{> header-background background=feature_image}} {{!--Special header-image.hbs partial to generate the background image--}}
|
|
|
|
<div class="h-full opacity-50 bg-black group-hover:opacity-75 transition-opacity">
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-11 17:02:59 +00:00
|
|
|
<div class="absolute bottom-0 py-6 left-0 right-0">
|
|
|
|
<div class="container mx-auto px-2 sm:px-8 md:px-16 lg:px-32 xl:px-64">
|
2019-11-08 20:59:26 +00:00
|
|
|
{{#if primary_tag}}
|
|
|
|
{{#primary_tag}}
|
|
|
|
<div>
|
2019-11-09 10:33:37 +00:00
|
|
|
<a href="{{url}}"><p class="bg-green-700 w-auto inline-block px-2 py-1 text-white text-sm">{{name}}</p></a>
|
2019-11-08 20:59:26 +00:00
|
|
|
</div>
|
|
|
|
{{/primary_tag}}
|
|
|
|
{{/if}}
|
|
|
|
<div>
|
|
|
|
<h1 class="text-white font-light text-3xl md:text-4xl">{{title}}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
|
|
<p><span class="text-white text-sm"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span class="bull">•</span> {{reading_time}}</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-row">
|
|
|
|
{{#foreach authors}}
|
|
|
|
{{#if profile_image}}
|
|
|
|
<div class="h-8 ml-1 mr-3">
|
|
|
|
<a href="{{url}}">
|
|
|
|
<img class="h-full rounded-full" src="{{img_url profile_image size="xs"}}" alt="{{name}}"/>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<a href="{{url}}" class="static-avatar author-profile-image">{{> "icons/avatar"}}</a>
|
|
|
|
{{/if}}
|
|
|
|
{{/foreach}}
|
|
|
|
<div class="text-white">
|
|
|
|
<p>{{#has author="count:>2"}}Multiple authors{{else}}{{authors}}{{/has}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-11 17:02:59 +00:00
|
|
|
</div>
|
2019-11-08 20:59:26 +00:00
|
|
|
</div>
|
2019-11-09 06:03:26 +00:00
|
|
|
<div class="w-full flex flex-row justify-begin items-center absolute top-0 index-navbar">
|
|
|
|
{{> "site-header"}}
|
|
|
|
</div>
|
2019-11-08 20:59:26 +00:00
|
|
|
</div>
|
|
|
|
|
2019-11-09 21:10:51 +00:00
|
|
|
<div class="px-4">
|
|
|
|
<main class="container mx-auto content" id="post">
|
2019-11-11 18:07:59 +00:00
|
|
|
<div class="px-2 sm:px-8 md:px-16 lg:px-32 xl:px-64">
|
|
|
|
{{content}}
|
|
|
|
</div>
|
2019-11-10 20:16:09 +00:00
|
|
|
<div class="px-2 sm:px-8 md:px-16 lg:px-32 xl:px-64">
|
2019-11-08 20:59:26 +00:00
|
|
|
<div class="my-4" id="comments">
|
|
|
|
</div>
|
2019-11-08 21:12:26 +00:00
|
|
|
<div class="my-4 flex flex-row justify-between">
|
|
|
|
{{#prev_post}}
|
|
|
|
<div class="w-1/3">
|
2019-11-11 18:07:59 +00:00
|
|
|
<a href="{{url}}">
|
|
|
|
<div class="flex flex-col items-end">
|
|
|
|
<p class="text-xl text-blue-700">Previous post</p>
|
|
|
|
<p>{{title}}</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
2019-11-08 21:12:26 +00:00
|
|
|
</div>
|
|
|
|
{{/prev_post}}
|
|
|
|
{{#next_post}}
|
|
|
|
<div class="w-1/3">
|
2019-11-11 18:07:59 +00:00
|
|
|
<a href="{{url}}">
|
|
|
|
<div class="flex flex-col items-begin">
|
|
|
|
<p class="text-xl text-blue-700">Next post</p>
|
|
|
|
<p>{{title}}</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
2019-11-08 21:12:26 +00:00
|
|
|
</div>
|
|
|
|
{{/next_post}}
|
|
|
|
</div>
|
2019-11-10 20:16:09 +00:00
|
|
|
</div>
|
2019-11-11 18:07:59 +00:00
|
|
|
</main>
|
2019-11-08 20:59:26 +00:00
|
|
|
{{/post}}
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{{#contentFor "scripts"}}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
// FitVids - start
|
|
|
|
var $postContent = $("#post");
|
|
|
|
$postContent.fitVids();
|
|
|
|
// FitVids - end
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{{/contentFor}}
|