Update Nethack partials, shortcodes, and page to properly handle ascensions 😁
This commit is contained in:
parent
d1df92aa03
commit
42a71c1ac3
7 changed files with 59 additions and 36 deletions
7
layouts/shortcodes/nethack/topn.html
Normal file
7
layouts/shortcodes/nethack/topn.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{{- $n := .Get 0 -}}
|
||||
{{- $logfile := partial "nethack/log.html" . -}}
|
||||
<ol class="logfile topn">
|
||||
{{ range first $n (sort $logfile "score" "desc") -}}
|
||||
<li>{{ partial "nethack/logentry.html" . }}</li>
|
||||
{{- end }}
|
||||
</ol>
|
||||
Loading…
Add table
Add a link
Reference in a new issue