Issue with Sidebar Sorting in Quarto Blog #9782
Unanswered
BrotherJiang
asked this question in
Q&A
Replies: 1 comment
-
Its 2025. Try adding this to your _quarto.yml: project:
# ...
render:
- "*.qmd" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi,
I'm using Quarto to create my blog and I'm encountering an issue with sorting the contents in the sidebar. In my index.qmd file, I use the listing feature to sort the contents in the posts folder by date in descending order, which works perfectly. However, when I try to apply the same sorting logic in the _quarto.yml file for the sidebar, the sidebar fails to show up. If I use contents: "posts/AI-news/*.qmd" in the _quarto.yml file, the sidebar appears, but the file order is incorrect. As a workaround, I have been naming each file sequentially (e.g., 01post1.qmd, 02post2.qmd, where 02post2 is later than 01post1), but this is not ideal as it doesn't allow for sorting by date.
Here is a small reproducible example of my setup:
_quarto.yml:
index.qmd:
And the folder structure:
Attached is an image showing the current issue. The file 02post2 (titled "Introduction to Linear Regression2") is later than 01post1 (titled "Introduction to Linear Regression1"), and I want 02post2 to be shown first. If I change it to:
Then the sidebar disappears.
Could you please advise on how I can modify the _quarto.yml file to enable the sidebar to display the files sorted by date in descending order, similar to how it works on the homepage table using sort: date desc?
Thank you for your assistance.

Beta Was this translation helpful? Give feedback.
All reactions