Closed digitalinferno closed 2 years ago
@PhrozenByte it is an improvement request rather than a support request
Alpha order is going to be blog/page a
, blog/page c
and foo/page b
, as pages aren't just sorted by their basename, but the full path. If you want it to roll over at the directory boundary, use the pages()
function and sort_by
filter (as you did, even though you don't need two iterations). pages_order
is for the global page order. Directories don't have any special meaning in Pico on purpose, as we want users to organize their pages how they prefer.
See #615 for an extensive discussion about this and various Twig snippets
Thank you, I have totally missed this discussion.
When we use the
next_page / prev_page
code it returns the next/prev page as specified by the config.yml configuration file If we havethen the alpha order is
But for me it make no sense to have this order if I would navigate only the blog content (similar issue if we use the date sort).
So another level of configuration is needed, my 2 cents.
pages_order_by:
meta
/alpha
/date
/subdirIn twig is something like this: