{{ partial "header.html" . }}
{{ partial "navbar.html" . }}

<div class="pure-g">
  <div class="pure-u-1-24 pure-u-md-5-24"></div>
	<div class="pure-u-11-12 pure-u-md-7-12">
	<div class="post-content">
	{{ .Content }}
	  <p class="posts-name">Recent posts:</p>

	  <ul class="posts">
		{{ $baseurl := .Site.BaseURL }}
		{{ range $name, $page := .Site.RegularPages }}
		{{ if eq .Type "posts" }}
		<li>
		  {{ if .Draft }}
		  DRAFT: 
		  {{ end }}
		  <a class="post-list" href="{{ .Permalink }}">{{ $page.Title }}</a>

      <p class="footnote">
        {{ with $page.Params.author }}
			{{ . }},
        {{ end }}
        <time datetime="{{ $page.Date }}">
          {{ if .Site.Params.dateformatpretty }}
            {{ $page.Date.Format .Site.Params.dateformatpretty }}
          {{ else }}
            {{ $page.Date.Format "01-02-2006" }}
          {{ end }}
        </time>

        {{ if or $page.Params.tags $page.Params.categories $page.Params.series }}
        |
        {{ end }}

        {{ with $page.Params.tags }}
        tags: [ {{ range $page.Params.tags}}<a href="{{ $baseurl }}tags/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
        {{ end }}

        {{ with $page.Params.categories }}
        categories: [ {{ range $page.Params.categories }}<a href="{{ $baseurl }}categories/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
        {{ end }}

        {{ with $page.Params.series }}
        series: [ {{ range $page.Params.series }}<a href="{{ $baseurl }}series/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
        {{ end }}
      </p>
    </li>
    {{ end }}
    {{ end }}
    </ul>
  </div>
  </div>
  <div class="pure-u-1-24 pure-u-md-5-24"></div>
</div>

{{ partial "footer.html" . }}
