title = "Post"
url = "/post/:id/:slug"
layout = "master"
is_hidden = 0

[blogPost]
slug = "{{ :slug }}"
categoryPage = "blog/category"

[builderList]
modelClass = "Akami\Shift\Models\Content"
scope = "-"
scopeValue = "{{ :scope }}"
displayColumn = "id"
noRecordsMessage = "No records found"
detailsPage = "-"
detailsUrlParameter = "id"
pageNumber = "{{ :page }}"
sortColumn = "id"
sortDirection = "desc"
==
{% set records = builderList.records %}
<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">

					<div class="post-content">
					    {% if post.featured_images[0] %}
						<div class="post-media post-image image-angle">
							<img src="{{ post.featured_images[0].thumb(750,450,{'mode':'crop'}) }}" class="img-responsive" alt="{{post.title}}">
						</div>
                        {% endif %}
						<div class="post-body">
							<div class="entry-header">
					 			<div class="post-meta">
									
   								<span class="post-meta-date"><i class="fa fa-calendar"></i> {{post.published_at|date('d.m.Y')}}</span>
								</div>
								<h2 class="entry-title">
					 				<a href="#">{{post.title}}</a>
					 			</h2>
							</div><!-- header end -->

							<div class="entry-content">
								{{post.content_html|raw}}
							</div>

							
							</div>
							
						</div><!-- post-body end -->
					</div><!-- post content 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><!-- Content Col end -->


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

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