diff --git a/post.hbs b/post.hbs index 42fea23..2d8705b 100644 --- a/post.hbs +++ b/post.hbs @@ -30,41 +30,43 @@ {{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}} + {{!-- Related Posts - Only show on posts, not pages --}} + {{#is "post"}} + {{#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 --}} - + {{!-- Next/Prev Navigation --}} + + {{/is}}