22 lines
1023 B
Handlebars
22 lines
1023 B
Handlebars
{{!--
|
|
Re-usable card for linking to posts
|
|
--}}
|
|
|
|
<article class="relative {{post_class}}">
|
|
{{#if feature_image}}
|
|
<div class="absolute top-3 left-3">{{> "article/tags" }}</div>
|
|
<a href={{url}} aria-hidden="true">
|
|
<img class="w-full mb-5"
|
|
data-srcset="{{> srcset}}"
|
|
data-sizes="auto"
|
|
src="{{img_url feature_image size="m"}}"
|
|
srcset="{{> srcset}}"
|
|
sizes="auto"
|
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{/if}}">
|
|
</a>
|
|
{{else}}
|
|
<div class="top-3 left-3 mb-2">{{> "article/tags" }}</div>
|
|
{{/if}}
|
|
<a class="text-lg block" href={{url}} aria-label="Read article entitled: {{title}}" title="Read article entitled: {{title}}">{{title}}</a>
|
|
<span class="text-xs text-slate-500"><time itemprop="datePublished" datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span class="bull">•</span> {{reading_time}}</span>
|
|
</article> |