Add a shortcode to generate a Nethack logfile with data from the data directory
This commit is contained in:
parent
5419a15603
commit
8fb0e09e1b
1 changed files with 6 additions and 2 deletions
|
@ -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 }}
|
||||||
<ol class="logfile">
|
<ol class="logfile">
|
||||||
{{ range sort $nethack_logfile "end_date" "desc" }}
|
{{ range sort $logfile "end_date" "desc" }}
|
||||||
{{ if ne .death.cause "quit" }}
|
{{ if ne .death.cause "quit" }}
|
||||||
<li class="logentry">
|
<li class="logentry">
|
||||||
{{ partial "nethack/logentry.html" .}}
|
{{ partial "nethack/logentry.html" .}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue