ПМ

Size: a a a
ПМ
ПМ
DP
ПМ
ПМ
v
{% set posts = blogPosts.posts %}
{% set year = 0 %}
<div class="container">
<div class="item">
<div id="timeline">
{% for post in posts %}
{% set postYear = post.published_at | date('Y') %}
<div><section class="year">
{% if year != postYear %}
{% set year = postYear %}
<h3>{{post.published_at | date ('Y') }}</h3>
{% endif %}
<section> <ul class="post-list">
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="info">
{% set categoryLinks = post.categories | map(c => "<a href=\"#{c.url}\">#{c.name}</a>") | join(', ') %}
{{ 'rainlab.blog::lang.post.posted_byline_no_categories' | trans({
date: post.published_at | date('d M' | trans)
})
}}
</p>
<p class="excerpt">{{ post.summary | raw }}</p>
</li>
</ul>
</section>
</section>
</section>
{% endfor %}
ПМ
ПМ
{% set posts = blogPosts.posts %}
{% set year = 0 %}
<div class="container">
<div class="item">
<div id="timeline">
{% for post in posts %}
{% set postYear = post.published_at | date('Y') %}
<div><section class="year">
{% if year != postYear %}
{% set year = postYear %}
<h3>{{post.published_at | date ('Y') }}</h3>
{% endif %}
<section> <ul class="post-list">
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="info">
{% set categoryLinks = post.categories | map(c => "<a href=\"#{c.url}\">#{c.name}</a>") | join(', ') %}
{{ 'rainlab.blog::lang.post.posted_byline_no_categories' | trans({
date: post.published_at | date('d M' | trans)
})
}}
</p>
<p class="excerpt">{{ post.summary | raw }}</p>
</li>
</ul>
</section>
</section>
</section>
{% endfor %}
v
ПМ
AP
E
PL
PL
AP
PL
MD
I
A
A