{{ define "main" }}
<div class="all">
  <h1>All posts</h1>
    {{ range .Site.RegularPages }}
        {{ if eq .Type "photo"}}
        <article class="h-entry entry">
            <h3 class="post-title p-name entry-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
            <h4 class="decription"><a href="{{ .RelPermalink }}">{{ .Description }}</a></h4>
            <div class="info">
              <i class="fa fa-sun"></i><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
              <i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>
            </div>
            <div class="e-content">{{ .Content }}</div>
          </article>
        {{ end }}
    {{ end }}
</div>
{{ end }}