Use max
to efficiently get latest list item
This commit is contained in:
parent
6900aa08f5
commit
d706f357e4
1 changed files with 1 additions and 1 deletions
|
@ -23,4 +23,4 @@ Globals: {{ globals.foo }}
|
|||
Static path: {% static "assets/pygments.css" %}
|
||||
SRI: {% sri_integrity "assets/pygments.css" %}
|
||||
|
||||
"Latest" list: {{ get_page("list/index.md")|children|sort(attribute="title")|first }}
|
||||
"Latest" list: {{ get_page("list/index.md")|children|max(attribute="title") }}
|
||||
|
|
Loading…
Reference in a new issue