Skip to content

How to use headers for my blog post? Or use a different .md structure alltogether? #163

Closed Answered by mearashadowfax
Najib90 asked this question in Q&A
Discussion options

You must be logged in to vote

You use the rest parameter ([...path]) to match file paths, so the one in the blog/ directory matches the blog content collection, and the one in the insights/ directory matches the insights content collection. The main difference lies in the structure of the Markdown files in these collections. If you have sub-headings and are concerned about SEO, you might want to adopt the structure from the insights collection and make some adjustments to [...slug].astro in the blog directory. An alternative way to manage blog posts is to use a CMS.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Najib90
Comment options

@mearashadowfax
Comment options

Answer selected by Najib90
@Najib90
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants