title = "Posts"
url = "/posts"
layout = "master"
is_hidden = 0

[blogPosts]
pageNumber = "{{ :page }}"
postsPerPage = 10
noPostsMessage = "No posts found"
sortOrder = "published_at desc"
categoryPage = "post"
postPage = "post"

[builderList]
modelClass = "Akami\Shift\Models\Content"
scope = "-"
scopeValue = "{{ :scope }}"
displayColumn = "id"
noRecordsMessage = "No records found"
detailsPage = "-"
detailsUrlParameter = "id"
pageNumber = "{{ :page }}"
sortColumn = "id"
sortDirection = "desc"
==
{% partial "bread" page="Habarlar"|_ %}
{% set records = builderList.records %}
{% set posts = blogPosts.posts %}

<section id="main-container" class="main-container">
    <div class="container">
        <div class="row">

            <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
                
                {% for post in posts %}
                    {% partial "post-item" post=post %}
                {% endfor %}
            

                {% partial "paginationPost" %}

            </div><!-- Content Col end -->

            <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">

                <div class="sidebar sidebar-right">


                    <div class="widget recent-posts">
                        <h3 class="widget-title">{{'posts.adv.title'|_}}</h3>
                        <ul class="unstyled clearfix">
                             {% for record in records if record.page == 'postAdv' %}
                                {% for img in record.imgs %}
                                    {% partial "post-item-sidebar" img=img %}
                                {% endfor %}
                            {% endfor %}
                            
                        </ul>

                    </div><!-- Recent post end -->

                </div><!-- Sidebar end -->
            </div><!-- Sidebar Col end -->

        </div><!-- Main row end -->

    </div><!-- Conatiner end -->
</section><!-- Main container end -->