Ghost_Ruby_Theme/partials/widgets/widget-recent.hbs
2021-03-15 14:00:14 +08:00

14 lines
489 B
Handlebars

<div class="widget widget-recent u-shadow">
<h4 class="widget-title">Recent Posts</h4>
{{#get "posts" limit="3" include="tags" as |recents|}}
{{#if recents}}
<div class="recent-posts">
{{#foreach recents}}
<article class="recent">
{{> post-header tag="h5" hide_tag=true show_date=true}}
</article>
{{/foreach}}
</div>
{{/if}}
{{/get}}
</div>