blog_theme/partials/loop.hbs
Sodbileg Gansukh 2fc92e58a0 Code formatting
2020-09-24 10:25:42 +08:00

19 lines
669 B
Handlebars

<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}}">
{{/if}}
{{> 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}}
</article>