1
Fork 0

Use max to efficiently get latest list item

This commit is contained in:
Jake Howard 2023-09-25 22:56:26 +01:00
parent 6900aa08f5
commit d706f357e4
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -23,4 +23,4 @@ Globals: {{ globals.foo }}
Static path: {% static "assets/pygments.css" %} Static path: {% static "assets/pygments.css" %}
SRI: {% sri_integrity "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") }}