mind-overflow-website-ghost.../partials/post-card-big.hbs

28 lines
1.2 KiB
Handlebars
Raw Normal View History

<article class="{{post_class}}">
2020-11-04 23:47:36 +01:00
<a class="mind-post-card-big_main" href="{{url}}">
2020-11-04 23:43:30 +01:00
2020-11-04 23:47:36 +01:00
{{#if feature_image}}
<img class="mind-post-card-big_feature-image" src="{{img_url feature_image size="m"}}" alt="Feature Image"
srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w"
/>
2020-11-04 23:47:36 +01:00
{{/if}}
<header class="mind-post-card-big_header">
<p class="mind-post-card-big_meta"><span class="mind-post-card-big_tag">{{primary_tag.name}}</span>
<time class="post-date" datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMMM YYYY"}}</time>
2020-11-04 23:47:36 +01:00
</p>
<h3>{{title}}</h3>
</header>
<section class="mind-post-card-big_excerpt">
<p>{{excerpt words="26"}}</p>
</section>
<footer class="mind-post-card-big_footer">
{{primary_author.name}}
{{#if primary_author.profile_image}}
<img class="mind-post-card-big_author-image" src="{{img_url primary_author.profile_image size="xxs"}}"
alt="Author image"/>{{/if}}
</footer>
</a>
</article>