Closed maxwowpow closed 5 months ago
Hello, thank you for using vitepress-sidebar
.
The feature you requested was added in version 1.20.0 with the sortMenusByFrontmatterDate
option.
Please refer to the README.md
file for more information.
Thank you for your feature request and please open a new issue if you encounter any further issues.
Regards,
Current state of things
Currently for the
sortMenusOrderByDescending
... This option is only enabled when
sortMenusByName
orsortMenusByFrontmatterOrder
istrue
.Proposition
How about making it active for frontmatter's
date: 2024-02-10
parameter?so
with
sortMenusOrderByDescending === true
and e.g.sortMenusByFrontmatterDate === true
would result in
Reasoning
E.g. Docusaurus uses this approach, so e.g. guys migrating from docusaurus would not need to modify their articles.
PS: I've never seen blogs with articles sorted by title... rather it's typical to have the articles listed chronologically. So some kind of date is used.