edition/partials/related-posts.hbs

12 lines
388 B
Handlebars
Raw Normal View History

2024-02-12 12:39:05 +00:00
{{#get "posts" limit="5" filter="tags:[{{post.tags}}]+id:-{{post.id}}" as |related|}}
{{#if related}}
<section class="related-wrapper gh-canvas">
<h3 class="related-title">You might also like...</h3>
<div class="post-feed related-feed">
{{#foreach posts}}
{{> "loop"}}
{{/foreach}}
</div>
</section>
{{/if}}
{{/get}}