+{% set posts = category.take_posts(3) %}
+
{{category.name}}
@@ -37,4 +37,4 @@
{% partial 'index/category_post_item' post = post %}
{% endfor %}
-
+
\ No newline at end of file
diff --git a/themes/modern2/partials/index/category_posts2.htm b/themes/modern2/partials/index/category_posts2.htm
new file mode 100644
index 000000000..1ce494da7
--- /dev/null
+++ b/themes/modern2/partials/index/category_posts2.htm
@@ -0,0 +1,40 @@
+[viewBag]
+==
+{% set posts = category.take_posts(3) %}
+
+
+
+ {{category.name}}
+
+
+ {{'page.more'|_}}
+
+
+
+
+
+
+
+{% for post in posts.slice(1) %}
+ {% partial 'index/category_post_item' post = post %}
+{% endfor %}
+
+
\ No newline at end of file
diff --git a/themes/modern2/partials/popular-posts.htm b/themes/modern2/partials/popular-posts.htm
index f2da7341c..0351b69e6 100644
--- a/themes/modern2/partials/popular-posts.htm
+++ b/themes/modern2/partials/popular-posts.htm
@@ -1,11 +1,12 @@
description = "popular-posts"
+[viewBag]
+
[popularPosts]
-postsLimit = 10
+category = "{{ :category }}"
+postsLimit = 5
noPostsMessage = "No posts found"
postPage = "post"
-
-[viewBag]
==
diff --git a/themes/modern2/partials/popular-posts2.htm b/themes/modern2/partials/popular-posts2.htm
new file mode 100644
index 000000000..6320d2571
--- /dev/null
+++ b/themes/modern2/partials/popular-posts2.htm
@@ -0,0 +1,31 @@
+[popularPosts]
+category = "{{ :category }}"
+postsLimit = 5
+noPostsMessage = "No posts found"
+postPage = "post"
+
+[viewBag]
+==
+
+
+
{{'Самое читаемое'|_}}
+
+
+ {% for post in posts %}
+
+
+
{{ post.categories.first.name }}
+
+ {{ post.published_at| date('d.m.Y')}}
+ {{post.published_at|date('H:i')}}
+
+
+
+
+
+ {% endfor %}
+
\ No newline at end of file