{{ define "main" }}

<!-- checking blog -->
{{ if or (eq .Section "article") (eq .Section "articles") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }}

<section class="section">
  <div class="container">
    <div class="row">
      <div class="col-12">
        {{ partial "breadcrumb.html" . }}
        <h1 class="mb-4 border-bottom border-primary d-inline-block">{{.Title | markdownify | humanize }}</h1>
      </div>
      <div class="col-lg-8 mb-5 mb-lg-0">
        <div class="row">
          {{ range .Data.Pages }}
          {{ .Render "post"}}
          {{ end }}
        </div>
      </div>
      <!-- sidebar -->
      {{ partial "sidebar.html" . }}
    </div>
  </div>
</section>

<!-- regular page -->
{{ else }}
{{ .Render "default" }}
{{ end }}
<!-- /regular page -->

{{ end }}