blog_theme/partials/widgets/widget-recent.hbs
2020-11-09 17:37:24 +08:00

14 lines
506 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 visibility="all"}}
<article class="recent">
{{> post-header tag="h5" hide_tag=true show_date=true}}
</article>
{{/foreach}}
</div>
{{/if}}
{{/get}}
</div>