{{ define "bodyclass" }}page-portfolio{{ end }}
{{ define "main" }}
{{ $up := "/" }}{{ if eq .Kind "term" }}{{ $up = "/portfolio/" }}{{ end }}
<div class="tui tui--files filebrowser">
  <p class="tui__cmd"><span class="tui__sym">$</span> ls</p>
  <p class="tui__cmd tui__total">total {{ len .Pages }}</p>
  <ul class="tui__ls">
    <li><a href="{{ $up | relURL }}" data-name="..">
      <span class="tui__perm">drwxr-xr-x</span><span class="tui__name">..</span>
    </a></li>
    {{ range .Pages }}
    <li><a href="{{ .RelPermalink }}" data-name="{{ .LinkTitle }}">
      <span class="tui__perm">drwxr-xr-x</span><span class="tui__name">{{ .LinkTitle }}/</span>
    </a></li>
    {{ end }}
  </ul>
</div>
{{ end }}
