Ghost_Ruby_Theme/partials/related.hbs

15 lines
486 B
Handlebars
Raw Normal View History

{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}"
include="tags,authors" as |related|}}
{{#if related}}
<section class="related-posts">
<h3 class="related-title">
<span class="text">You might also like...</span>
</h3>
<div class="post-feed">
{{#foreach related}}
{{> loop}}
{{/foreach}}
</div>
</section>
{{/if}}
2019-04-30 18:00:55 +03:00
{{/get}}