39 lines
893 B
HTML
39 lines
893 B
HTML
|
|
title = "Поиск"
|
||
|
|
url = "/search"
|
||
|
|
layout = "cms"
|
||
|
|
is_hidden = 0
|
||
|
|
robot_index = "index"
|
||
|
|
robot_follow = "follow"
|
||
|
|
|
||
|
|
[viewBag]
|
||
|
|
localeTitle[en] = "Search"
|
||
|
|
|
||
|
|
[blogPosts]
|
||
|
|
pageNumber = "{{ :page }}"
|
||
|
|
postsPerPage = 10
|
||
|
|
noPostsMessage = "No posts found"
|
||
|
|
sortOrder = "published_at desc"
|
||
|
|
categoryPage = "category"
|
||
|
|
postPage = "post"
|
||
|
|
==
|
||
|
|
<div class="main__content">
|
||
|
|
<div class="heading">
|
||
|
|
<div class="heading__title">
|
||
|
|
{{'page.search'}}
|
||
|
|
</div>
|
||
|
|
{% for item in blogPosts.posts %}
|
||
|
|
{% partial 'post_list_item' post = item %}
|
||
|
|
{% else %}
|
||
|
|
<p>No posts found</p>
|
||
|
|
{% endfor %}
|
||
|
|
{% partial 'pagination' items = blogPosts.posts %}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="main__sidebar">
|
||
|
|
{% partial 'calendar' %}
|
||
|
|
{% partial 'tags' %}
|
||
|
|
</div>
|
||
|
|
{% put scripts %}
|
||
|
|
<script src="{{['assets/js/lazy.js','assets/js/main.js']|theme}}"></script>
|
||
|
|
{% endput %}
|