{{ $nethack_data := $.Site.Data.nethack.logfile }}
{{ $logfile := slice }}
{{ range $nethack_data }}
  {{ $logfile = $logfile | append .logfile }}
{{ end }}
<ol class="logfile">
  {{ range first 10 (sort $logfile "end_date" "desc") }}
  {{ if ne .death.cause "quit" }}
  <li class="logentry">
    {{ partial "nethack/logentry.html" .}}
  </li>
  {{ end }}
  {{ end }}
</ol>