Sort "Related posts" by recently published (#515)
This commit is contained in:
parent
21d328f797
commit
988dbf1c62
2
post.hbs
2
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}}
|
||||
<section class="m-recommended">
|
||||
<div class="l-wrapper in-recommended">
|
||||
|
Loading…
Reference in New Issue
Block a user