diff --git a/layouts/shortcodes/nethack/logfile.html b/layouts/shortcodes/nethack/logfile.html index fb1e38f..7fcc1a0 100644 --- a/layouts/shortcodes/nethack/logfile.html +++ b/layouts/shortcodes/nethack/logfile.html @@ -1,6 +1,10 @@ -{{ $nethack_logfile := $.Site.Data.nethack.logfile.nutmeg }} +{{ $nethack_data := $.Site.Data.nethack.logfile }} +{{ $logfile := slice }} +{{ range $nethack_data }} + {{ $logfile = $logfile | append .logfile }} +{{ end }}
    - {{ range sort $nethack_logfile "end_date" "desc" }} + {{ range sort $logfile "end_date" "desc" }} {{ if ne .death.cause "quit" }}
  1. {{ partial "nethack/logentry.html" .}}