Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nextra] sort defaultMeta by frontMatter.date, if missing by frontMatter.title and after by capitalized page name + TESTS 🧪 #894

Merged
merged 5 commits into from Oct 20, 2022

Conversation

dimaMachina
Copy link
Collaborator

we encouraged the same problem for our blogposts

fixes #747

  1. We also maintain blogs, however the articles are in ASC order by date, seems we have to use meta.json to change the order, can we respect the frontmatter.date and list in descending order

@vercel
Copy link

vercel bot commented Oct 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview Oct 19, 2022 at 11:22PM (UTC)
nextra-v2 ✅ Ready (Inspect) Visit Preview Oct 19, 2022 at 11:22PM (UTC)
1 Ignored Deployment
Name Status Preview Updated
nextra ⬜️ Ignored (Inspect) Oct 19, 2022 at 11:22PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2022

🦋 Changeset detected

Latest commit: da5d6f1

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dimaMachina dimaMachina mentioned this pull request Oct 14, 2022
12 tasks
@dimaMachina dimaMachina changed the title [nextra] sort defaultMeta by frontMatter.date, if missing by frontMatter.title and after by page name [nextra] sort defaultMeta by frontMatter.date, if missing by frontMatter.title and after by page name + TESTS 🧪 Oct 14, 2022
@dimaMachina dimaMachina changed the title [nextra] sort defaultMeta by frontMatter.date, if missing by frontMatter.title and after by page name + TESTS 🧪 [nextra] sort defaultMeta by frontMatter.date, if missing by frontMatter.title and after by capitalized page name + TESTS 🧪 Oct 14, 2022
@dimaMachina dimaMachina merged commit 094fdec into core Oct 20, 2022
@dimaMachina dimaMachina deleted the _sort-default-meta-by-date branch October 20, 2022 13:01
tatukoivisto pushed a commit to tatukoivisto/nextra that referenced this pull request Aug 20, 2023
…ntMatter.title` and after by capitalized page name + TESTS 🧪 (shuding#894)

* sort `defaultMeta` by `frontMatter.date`, if missing by `frontMatter.title` and after by page name

* refactor to have less code

* Update .changeset/tender-papayas-walk.md

* Apply suggestions from code review

* capitalize sidebar's folders names if item is missing in `_meta.json` (shuding#895)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant