ghost-theme-sd.ai/partials/loop.hbs
Sodbileg Gansukh bd5c882ebb Header styles
2023-07-10 11:14:43 +08:00

22 lines
985 B
Handlebars

<article class="gh-card {{post_class}}">
<a class="gh-card-link" href="{{url}}">
{{#if feature_image}}
<figure class="gh-card-image">
<img
srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 720w,
{{img_url feature_image size="l"}} 960w,
{{img_url feature_image size="xl"}} 1200w,
{{img_url feature_image size="xxl"}} 2000w"
sizes="(max-width: 1200px) 100vw, 1200px"
src="{{img_url feature_image size="m"}}"
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
>
</figure>
{{/if}}
<div class="gh-card-wrapper">
<h2 class="gh-card-title">{{title}}</h2>
<p class="gh-card-excerpt">{{excerpt}}</p>
</div>
</a>
</article>