Ghost_Ruby_Theme/partials/loop.hbs
2019-05-01 16:20:04 +08:00

20 lines
601 B
Handlebars

<article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}}">
{{#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>