How to use headers for my blog post? Or use a different .md structure alltogether? #163
-
I understand that search engines prefer headers over plain text for crawling. What’s the best way to incorporate headers into longer blog posts for improved SEO? Or is my understanding wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
mearashadowfax
Aug 10, 2024
Replies: 1 comment 3 replies
-
To optimize your blog posts for SEO, you can use a structure from the insights content collection. Here's a basic structure you can follow:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.