forked from yevi.org/Ghost_Ruby_Theme
18 lines
882 B
Handlebars
18 lines
882 B
Handlebars
{{#if feature_image}}
|
|
<figure class="post-media">
|
|
<div class="u-placeholder{{#if same_height}} same-height {{ratio}}{{/if}}">
|
|
<a class="post-image-link" href="{{url}}">
|
|
<img class="post-image lazyload{{#if same_height}} u-object-fit{{/if}}"
|
|
data-srcset="{{img_url feature_image size="s"}} 400w, {{img_url feature_image size="m"}} 750w, {{img_url feature_image size="l"}} 960w"
|
|
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
|
data-sizes="auto" alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}">
|
|
</a>
|
|
</div>
|
|
|
|
{{#if with_caption}}
|
|
{{#if feature_image_caption}}
|
|
<figcaption>{{feature_image_caption}}</figcaption>
|
|
{{/if}}
|
|
{{/if}}
|
|
</figure>
|
|
{{/if}} |