blog_theme/partials/loop.hbs

19 lines
669 B
Handlebars
Raw Normal View History

2020-09-24 05:25:42 +03:00
<article
class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} u-shadow">
{{#if featured}}
<img class="post-image lazyload u-object-fit"
data-src="{{img_url feature_image}}"
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
data-sizes="auto" alt="{{title}}">
2019-04-30 18:00:55 +03:00
{{/if}}
2020-09-24 05:25:42 +03:00
{{> post-media same_height=true ratio="rectangle"}}
<div class="post-wrapper">
{{> post-header tag="h2"}}
{{#if excerpt}}
<div class="post-excerpt">
{{excerpt words="12"}}
</div>
{{/if}}
</div>
{{> post-footer}}
2019-04-30 18:00:55 +03:00
</article>