{{!--
This template is used for the post page.
--}}
{{!-- This block preloads specific assets for the post page --}}
{{#contentFor "preload"}}
{{/contentFor}}
{{!-- This block loads specific styles for the post page --}}
{{#contentFor "styles"}}
{{/contentFor}}
{{!-- The tag below means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!< default}}
{{!-- Special header.hbs partial to generate the tag --}}
{{#post}}
{{> header background=feature_image}}
{{/post}}
{{#post}}
{{!-- Inject styles of the hero image to make it responsive --}}
{{> hero background=feature_image}}
{{/post}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
{{authors separator=", " prefix=(t "Among with no break line") from="2"}}
{{/has}}
{{#if primary_author.bio}}
{{primary_author.bio}}
{{/if}}
{{#if primary_author.website}}
{{/if}}
{{#if primary_author.facebook}}
{{/if}}
{{#if primary_author.twitter}}
{{/if}}
{{!-- If you want to embed comments, this is a good place to do it! --}}
{{!--
--}}
{{/post}}
{{!-- Related posts --}}
{{#if post.tags.length}}
{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" as |related|}}
{{t "Recommended for you"}}
{{!-- The tag below iterates over all the related posts --}}
{{> "loop"}}
{{/get}}
{{else}}
{{t "Recommended for you"}}
{{t "No posts found"}}
{{t "Apparently there are no posts at the moment, check again later."}}
{{/if}}
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
{{#contentFor "scripts"}}
{{/contentFor}}