This is an example post showing how the English content collection works. Delete
this file once the first real post is ready, or git mv it to a new slug and
rewrite it.
Adding a new post
- Copy this file (
src/content/blog/en/example-post.md) tosrc/content/blog/en/<new-slug>.md. Malay posts go insrc/content/blog/my/instead and come out at/my/blog/<slug>/. - Replace every frontmatter field above (title, description, pubDate, eyebrow, heroImage, heroAlt).
- Put the hero image at
public/blog/<new-slug>/hero.webpand updateheroImageto match. - Write the post body in Markdown below the frontmatter —
##headings, bold, and lists all work directly. ctaLine,ctaText, andctaHrefare optional. There is no English sales page yet, so the default CTA points back at/blog/— overridectaHrefonce there is somewhere better to send readers.
This post’s URL is automatically /blog/<filename>/. There’s no need to declare
a canonical, a sitemap entry, or <head> tags by hand — [...slug].astro and
@astrojs/sitemap handle all of it.
A note on hreflang
Malay and English posts are separate articles, not translations of each other,
so no hreflang links are emitted between them. Only add alternates (on
BaseHead) for pages that genuinely are the same content in two languages.