38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
[blogPosts]
|
|
pageNumber = "{{ :page }}"
|
|
categoryFilter = "tendery"
|
|
postsPerPage = 5
|
|
noPostsMessage = "No posts found"
|
|
sortOrder = "published_at desc"
|
|
categoryPage = "category"
|
|
postPage = "post"
|
|
|
|
[viewBag]
|
|
==
|
|
{% set posts = blogPosts.posts %}
|
|
<div id="right_top-up" class="right_top-up">
|
|
<div class="right_top-title">
|
|
<h2 class="right_top-title-text right_top-title-text-2">{{category.name}}</h2>
|
|
<div class="right_top-line right_top-line-2"></div>
|
|
<a href="{{'category'|page({slug:category.slug})}}" class="additional">{{'page.more'|_}}</a>
|
|
</div>
|
|
|
|
{% for post in posts %}
|
|
<div class="right_top-content">
|
|
<div class="right_top-content-top">
|
|
<div class="right-top-content-date">
|
|
<span class="date">{{ post.published_at| date('d.m.Y')}}</span>
|
|
<span class="time">{{post.published_at|date('H:i')}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="right_top-content-bottom">
|
|
<a href="{{postPage|page({slug:post.slug,id:post.id})}}" class="right_top-content-bottom-text">
|
|
{{ post.title }}
|
|
</a>
|
|
</div>
|
|
<div class="hr-line"></div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</div>
|