diff --git a/post.hbs b/post.hbs index ff05b1e..42fea23 100644 --- a/post.hbs +++ b/post.hbs @@ -30,6 +30,42 @@ {{content fallback="

No content provided for this post.

"}} + {{!-- Related Posts --}} + {{#if primary_tag}} + {{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}} + {{#if related_posts}} +
+

You might also like

+
+ {{#foreach related_posts}} + {{> "post-card"}} + {{/foreach}} +
+
+ {{/if}} + {{/get}} + {{/if}} + + {{!-- Next/Prev Navigation --}} + +