mirror of
https://github.com/TryGhost/Ruby.git
synced 2024-10-30 04:48:33 +02:00
17 lines
695 B
Handlebars
17 lines
695 B
Handlebars
<div class="widget widget-recent">
|
|
<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">
|
|
<div class="recent-image-placeholder u-placeholder">
|
|
<img class="recent-image lazyload u-object-fit" data-src={{img_url feature_image size="xs"}} src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{title}}">
|
|
</div>
|
|
{{> post-header tag="h5" hide_tag=true show_date=true}}
|
|
</article>
|
|
{{/foreach}}
|
|
</div>
|
|
{{/if}}
|
|
{{/get}}
|
|
</div> |