{{ define "main" }}
  {{- partial "nav.html" . -}}

  {{ $section := .Section }}
  {{ with .Title }}{{ $section = . }}{{ end }}
  {{ $pages := union .RegularPages .Sections }}

  <div class="post-list">
    <div class="prompt">
      <span class="user">morgan</span><span class="at">@</span><span class="host">morgan.kr</span><span class="sep">:</span><span class="path">~/{{ $section }}</span><span class="dollar">$</span> ls -l
    </div>
    <div class="ls-header">total {{ len $pages }}</div>
    <ul>
      {{ range $pages }}
        <li>
          <span class="perms">-rw-r--r--</span>
          {{ if gt .Date.Year 2000 }}<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan _2 2006" }}</time>{{ else }}<time>            </time>{{ end }}
          <a href="{{ .RelPermalink }}">{{ .Title }}</a>
        </li>
      {{ end }}
    </ul>
  </div>
{{ end }}
