Ghost_Ruby_Theme/partials/related.hbs
2019-04-30 23:00:55 +08:00

12 lines
404 B
Handlebars

{{#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">{{t 'You might also like...'}}</span></h3>
<div class="post-feed">
{{#foreach related}}
{{> loop}}
{{/foreach}}
</div>
</section>
{{/if}}
{{/get}}