mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-14 04:18:04 +00:00
revert prev commit
This commit is contained in:
parent
e6f27f307c
commit
9c8babbd17
21
post.hbs
21
post.hbs
@ -99,4 +99,25 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
{{/if}}{{/unless}}
|
{{/if}}{{/unless}}
|
||||||
{{/match}}
|
{{/match}}
|
||||||
|
|
||||||
|
{{!-- Read more links, just above the footer --}}
|
||||||
|
{{#if @custom.show_recent_posts}}
|
||||||
|
{{!-- The {#get} helper below fetches some of the latest posts here
|
||||||
|
so that people have something else to read when they finish this one.
|
||||||
|
|
||||||
|
This query gets the latest 3 posts on the site, but adds a filter to
|
||||||
|
exclude the post we're currently on from being included. --}}
|
||||||
|
{{#get "posts" filter="id:-{{id}}" include="authors" limit="3" as |more_posts|}}
|
||||||
|
|
||||||
|
{{#if more_posts}}
|
||||||
|
<aside class="read-more-wrap">
|
||||||
|
<div class="read-more inner">
|
||||||
|
{{#foreach more_posts}}
|
||||||
|
{{> "post-card"}}
|
||||||
|
{{/foreach}}
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
{{/if}}
|
||||||
|
{{/get}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{/post}}
|
{{/post}}
|
Loading…
Reference in New Issue
Block a user