Skip to content

feat(website): hide individual blog articles from top menu.#1808

Merged
samchon merged 1 commit intomasterfrom
fix/website
Mar 27, 2026
Merged

feat(website): hide individual blog articles from top menu.#1808
samchon merged 1 commit intomasterfrom
fix/website

Conversation

@samchon
Copy link
Copy Markdown
Owner

@samchon samchon commented Mar 27, 2026

This pull request introduces a new _meta.ts file for the blog content in the website directory. The file sets a default metadata configuration to hide all blog posts from display.

Metadata configuration:

  • Added a new website/src/content/blog/_meta.ts file that hides all blog posts by default using the display: "hidden" setting.

@samchon samchon self-assigned this Mar 27, 2026
@samchon samchon added the documentation Improvements or additions to documentation label Mar 27, 2026
@samchon samchon marked this pull request as ready for review March 27, 2026 06:39
Copilot AI review requested due to automatic review settings March 27, 2026 06:39
@samchon samchon merged commit 634eee0 into master Mar 27, 2026
3 of 4 checks passed
@samchon samchon deleted the fix/website branch March 27, 2026 06:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a Nextra _meta.ts configuration for the blog content folder intended to hide blog post pages from appearing in site navigation.

Changes:

  • Add website/src/content/blog/_meta.ts with a folder-wide default display: "hidden" setting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +7
export default {
"*": {
display: "hidden",
},
} satisfies MetaRecord;
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants