Instruction file imported from dev-SR/dev-sr.com (
.cursor/rules/content-authoring.mdc). Copyright stays with the author.
When creating or editing posts under content/, follow content/guides/content-authoring.mdx.
- Files in
content/publish. Nested path = slug (content/math/set/intro.md→/blog/math/set/intro). - Use
.mdxif the post needsFigure,CodeTabs, orPathVisualizer. Do not import components. - Frontmatter:
title,date,excerpt,tags; optionalcoverImage+coverImageAlt. Layout already renders the title — start the body at##. - Fenced code auto-renders as
CodeBlock(card shell + header + dark panel). Usetitle="filename"for a copyable path in the header. Line numbers are on by default; usehideLineNumbersto opt out. - Multi-file =
<CodeTabs>with editor-style tabs; each fence needstitle="filename". Diffs/focus/errors use[!code ++]comments, not screenshots. - Math is
$inline$/$$display$$(KaTeX). Images live inpublic/and are referenced as/.... - Never use
MultiFileCodeBlock,CodeFrame, orDocsCodeBlockin content. Never put docs or drafts incontent/.