title = "Tin tức" url = "/blog" layout = "default" description = "Trang tin tức của công ty" is_hidden = 0 [blogPosts] pageNumber = "{{ :page }}" postsPerPage = 15 noPostsMessage = "Không có tin nào." sortOrder = "published_at desc" categoryPage = "blog/category" postPage = "blog/post" exceptCategories = "product,service" [blogCategories] slug = "{{ :slug }}" displayEmpty = 0 categoryPage = "blog/category" ==
{{'common.homepage'|_}} {{'common.blog'|_}}
{% if categories %}
{% for cat in categories[0:3] %}
{% partial 'blog/cat-box' cat=cat %}
{% endfor %}
{% endif %} {% if posts %}
{% set firstPost = posts.first %}
{% set restPosts = posts[1:] %} {% for post in restPosts %}
{% endfor %}
{% endif %} {% set currentPage = blogPosts.posts.currentPage %} {% set lastPage = blogPosts.posts.lastPage %} {% set perPage = blogPosts.posts.perPage %} {% set total = blogPosts.posts.total %} {% set items = blogPosts.posts.items|length %} {% partial 'shared/pagination' currentPage = currentPage lastPage = lastPage perPage = perPage total = total items = items %}