{{ define "title"}} {{ .Title}} {{end}}
{{ define "header"}} {{ partial "header" .}} {{end}}

{{ define "main" }}

<div id="hero" class="wrap">
    {{ if eq .Type "blog" }}
    <h1> Blog </h1>
        {{ .Site.Data.subtext.blog.content | markdownify }}
        <p></p>
    {{ end }}
</div>

<ul id="posts">

 {{ range .Paginator.Pages.ByWeight }} {{ partial "page-summary" . }} {{ end }}
  <section>{{ partial "pagination" .}}</section>

</ul>

{{ end }}
{{ define "footer" }} {{ partial "footer" . }} {{ end }}
