attempt to sort newest by date

This commit is contained in:
2023-03-04 00:22:37 +10:30
committed by GitHub
parent bc28b4abeb
commit 97ec066f53

View File

@ -1,5 +1,5 @@
<div class="link_tiles_grid">
<a href="{{ collections.all[0].page.url }}">
<a href="{{ collections.all.sort((a, b) => (a.page.date > b.page.date) ? 1 : -1)[0].page.url }}">
<img src="_assets/img/haruko.png"/>
newest!
</a>