2019-04-14 18:41:25 +00:00
|
|
|
{{!-- The template below includes the markup for each post --}}
|
|
|
|
|
2019-02-24 21:06:24 +00:00
|
|
|
{{#foreach posts}}
|
2019-03-03 18:32:36 +00:00
|
|
|
{{#is "post"}}
|
2020-06-29 13:54:07 +00:00
|
|
|
<div class="m-recommended-slider__item glide__slide">
|
2019-03-03 18:32:36 +00:00
|
|
|
{{/is}}
|
2019-02-24 21:06:24 +00:00
|
|
|
{{#if feature_image}}
|
|
|
|
<article class="m-article-card {{post_class}}">
|
|
|
|
{{else}}
|
|
|
|
<article class="m-article-card no-picture {{post_class}}">
|
|
|
|
{{/if}}
|
2020-06-29 13:54:07 +00:00
|
|
|
<div class="m-article-card__picture">
|
2019-02-24 21:06:24 +00:00
|
|
|
<a href="{{url}}" class="m-article-card__picture-link" aria-label="Article"></a>
|
2020-06-29 13:54:07 +00:00
|
|
|
{{#if feature_image}}
|
|
|
|
<img clasS="m-article-card__picture-background" src="{{img_url feature_image size="m"}}" loading="lazy" alt="">
|
|
|
|
{{/if}}
|
2019-08-17 18:34:39 +00:00
|
|
|
<a href="{{primary_author.url}}" class="m-article-card__author js-tooltip" aria-label="Authors" data-tippy-content="{{t "Posted by"}} {{primary_author.name}} {{authors autolink="false" from="2" prefix=(t "Among with") separator=" , "}}">
|
2019-02-24 21:06:24 +00:00
|
|
|
{{#if primary_author.profile_image}}
|
2019-10-29 09:20:52 +00:00
|
|
|
<div style="background-image: url({{img_url primary_author.profile_image size="xs"}});"></div>
|
2019-02-24 21:06:24 +00:00
|
|
|
{{else}}
|
|
|
|
<div style="background-image: url({{asset "images/default-avatar-square-small.jpg"}});"></div>
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
{{#if featured}}
|
2019-08-17 18:34:39 +00:00
|
|
|
<a href="{{url}}" class="m-article-card__featured js-tooltip" data-tippy-content="{{t "Featured"}}" aria-label="Article">
|
2019-02-24 21:06:24 +00:00
|
|
|
<span class="icon-star"></span>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{#if primary_tag}}
|
|
|
|
<div class="m-article-card__info">
|
|
|
|
<a href="{{primary_tag.url}}" class="m-article-card__tag">{{primary_tag.name}}</a>
|
|
|
|
{{else}}
|
|
|
|
<div class="m-article-card__info no-tag">
|
|
|
|
{{/if}}
|
|
|
|
<a href="{{url}}" class="m-article-card__info-link">
|
|
|
|
<div>
|
2019-11-21 15:48:21 +00:00
|
|
|
<h2 class="m-article-card__title js-article-card-title {{#unless feature_image}}js-article-card-title-no-image{{/unless}}" title="{{title}}">
|
|
|
|
{{title}}
|
|
|
|
</h2>
|
2019-02-24 21:06:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="m-article-card__timestamp">
|
2019-03-17 16:16:17 +00:00
|
|
|
<span>{{date published_at timeago="true"}}</span>
|
2019-02-24 21:06:24 +00:00
|
|
|
<span>•</span>
|
2019-08-15 14:40:46 +00:00
|
|
|
<span>{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
|
2019-02-24 21:06:24 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</article>
|
2019-03-03 18:32:36 +00:00
|
|
|
{{#is "post"}}
|
2019-03-17 16:16:17 +00:00
|
|
|
</div>
|
2019-03-03 18:32:36 +00:00
|
|
|
{{/is}}
|
2019-02-24 21:06:24 +00:00
|
|
|
{{else}}
|
2019-05-26 12:56:54 +00:00
|
|
|
<header class="m-heading no-margin">
|
2019-08-15 14:40:46 +00:00
|
|
|
<h3>{{t "No posts found"}}</h3>
|
2019-02-24 21:06:24 +00:00
|
|
|
<p>
|
2019-08-15 14:40:46 +00:00
|
|
|
{{t "Apparently there are no posts at the moment, check again later."}}
|
2019-02-24 21:06:24 +00:00
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
{{/foreach}}
|