From 056c68dbc046f5f548cc7c3a06e2e880fc173525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Fri, 20 Feb 2026 09:58:02 +0100 Subject: [PATCH] feat: add related posts and next/previous navigation to post template --- post.hbs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) 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 --}} + +