{{ define "main" }}
<content>
  {{- $pages := union .RegularPages .Sections }}

  {{- if .IsHome }}
  {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
  {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true"  }}
  {{- end }}

  <ul class="blog-posts">
    {{ range $pages }}
    <li>
      <span class="date">
        {{ .Date.Format "2006-01-02" }} |
      </span>
      <a href="{{ .Permalink }}">{{ .Title }}</a>
    </li>
    {{ end }}
  </ul>
</content>
{{- if .IsHome }}
  <a href="/blogs" style="font-size:10px; color: #AAA; bottom: 12px; position: fixed;">-</a>
{{- end }}
{{ end }}