From 988dbf1c621e0b23df8c952dcfd657a14c874350 Mon Sep 17 00:00:00 2001 From: Avi Leavitt Date: Mon, 22 May 2023 16:27:23 -0400 Subject: [PATCH] Sort "Related posts" by recently published (#515) --- post.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.hbs b/post.hbs index ff2105a..f19e429 100644 --- a/post.hbs +++ b/post.hbs @@ -177,7 +177,7 @@ into the {body} of the default.hbs template --}} {{/post}} {{!-- Related posts --}} {{#if post.tags.length}} - {{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" as |related|}} + {{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" order="published_at desc" as |related|}} {{#if related}}