53 lines
1.4 KiB
Handlebars
Executable File
53 lines
1.4 KiB
Handlebars
Executable File
<div class="extra-pagination">
|
|
{{pagination}}
|
|
</div>
|
|
|
|
<div class="post-grid">
|
|
{{#foreach posts visibility="all"}}
|
|
<article class="{{post_class}}">
|
|
<div class="inner">
|
|
<div class="box post-box">
|
|
{{#if featured}}
|
|
<span class="post-feature">
|
|
<i class="icon icon-star">{{> "icons/icon-star"}}</i>
|
|
</span>
|
|
{{/if}}
|
|
|
|
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
|
|
|
|
<span class="post-meta">
|
|
{{t "By"}}
|
|
{{authors separator=", "}}
|
|
{{#primary_tag}}{{t "in"}} <a class="post-meta-tag">{{primary_tag.name}}</a>{{/primary_tag}}
|
|
{{t "on"}}
|
|
<time datetime="{{date format='DD-MM-YYYY'}}">{{date format="DD MMM YYYY"}}</time>
|
|
</span>
|
|
|
|
<div class="post-content-wrapper">
|
|
{{#if feature_image}}
|
|
<!-- Flex item: featured image -->
|
|
<div class="post-feature-image">
|
|
<img
|
|
srcset="{{img_url feature_image size="s"}} 320w,
|
|
{{img_url feature_image size="m"}} 640w,
|
|
{{img_url feature_image size="l"}} 960w,
|
|
{{img_url feature_image size="xl"}} 1920w"
|
|
src="{{img_url feature_image size="xl"}}"
|
|
alt="{{title}}"
|
|
loading="lazy" />
|
|
</div>
|
|
{{/if}}
|
|
|
|
<!-- Flex item: post content -->
|
|
<div class="post-text-content">
|
|
<p class="prenos">{{content}}</p> <!-- You can replace {{content}} with {{excerpt}} for preview text -->
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</article>
|
|
{{/foreach}}
|
|
</div>
|
|
|
|
{{pagination}} |