Hi, I'm trying sort by latest post first.
This sorts by oldest post first:
<@ newPagelist {
type: 'children',
context: @{ '/blog' },
filter: @{ ?filter },
search: @{ ?search },
sort: @{ ?sort | def('date desc') },
limit: @{ itemsPerPage | def(10) },
page: @{ ?page | def(1) }
} @>
This also sorts by oldest post first:
<@ newPagelist { type: 'children', context: '/blog', sort: 'date desc' } @>
This also sorts by oldest post first:
sort: 'date asc'
And this also sorts by oldest post first:
sort: 'date'
I cant find all available options for "sort:" in the docs. So Im stuck. All input appreciated. Cheers!