{{ define "main" }}
  {{ .Content }}

  <section>
    <hr>

    <h3>
      <a href="/journal">Journal</a>
    </h3>

    <ul>
      {{ range (where .Site.RegularPages "Type" "in" "journal") }}
        <li>
          <p>
            <a href="{{ .Permalink }}">{{ .Title }}</a>
            {{ .Date | time.Format "(2006-01-02)" }}
          </p>

          {{ .Summary }}
        </li>
      {{ end }}
    </ul>
  </section>

  {{- partial "pinboard.html" . -}}
{{ end }}
