{{ define "title" }}{{ .Title }}{{ end }}
{{ define "main" }}
    {{ if not .Params.IsPage }}
    <aside class="inner-window">
      <b name="top">Subject</b>: {{ .Title }}<br/>
      {{ partial "metadata" . }}
    </aside>
    {{ end }}
  <main class="inner-window white content">
    {{ .Content }}
  {{ if not .Params.IsPage }}
    <p class="pagination center">
        {{ with .PrevInSection }}
        <a href="{{.Permalink}}"><button>« {{.Title}}</button></a>
        {{ end }}
        {{ with .NextInSection }}
        <a href="{{.Permalink}}"><button>{{.Title}} »</button></a>
        {{ end }}
      </p>
    {{ end }}
  </main>
{{ end }}
{{ define "status" }}{{ .Description }}{{ end }}
{{ define "footer" }}
{{ if not .Params.IsPage }}
  {{ if not .Params.HideComments }}
        {{ partial "comments" . }}
  {{ end }}
{{ end }}
{{ end }}