Recent posts

This commit is contained in:
Sodbileg Gansukh
2023-07-13 16:45:44 +08:00
parent 4739b08e25
commit 26c39ce7f9
5 changed files with 52 additions and 5 deletions

12
partials/recent-posts.hbs Normal file
View File

@@ -0,0 +1,12 @@
<section class="gh-container is-{{#match @custom.post_list_style "List"}}list{{else}}grid{{/match}}{{#if @custom.hide_images}} no-image{{/if}} gh-canvas">
<div class="gh-container-inner">
<h2 class="gh-container-title">Read more</h2>
<div class="gh-feed">
{{#get "posts" include="authors" filter="id:-{{post.id}}" limit="2" as |next|}}
{{#foreach next}}
{{> "loop"}}
{{/foreach}}
{{/get}}
</div>
</div>
</section>