Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions website/src/content/blog/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { MetaRecord } from "nextra";

export default {
"*": {
display: "hidden",
},
} satisfies MetaRecord;
Comment on lines +3 to +7
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting the folder fallback to display: "hidden" will hide every blog post from Nextra’s normalized page list. In this codebase, getPosts() (used by /blog, tags pages, and generateStaticParams for /blog/[slug]) is built on normalizePages(...), which skips items with display: 'hidden', so this change would result in zero posts being listed and zero blog pages being statically generated. To achieve “hide from menu” without breaking the blog, either (a) avoid using display: "hidden" for all posts, or (b) refactor the blog listing/static params logic to enumerate posts without normalizePages’ hidden filtering (e.g., traverse getPageMap('/blog') directly or read the MDX files from disk).

Suggested change
export default {
"*": {
display: "hidden",
},
} satisfies MetaRecord;
export default {} satisfies MetaRecord;

Copilot uses AI. Check for mistakes.
Loading