frontend/content/blog/
Markdown blog posts rendered at /blog/[slug]/. Parsed at build time by lib/blog.ts using gray-matter (frontmatter) and remark (HTML rendering).
UX Intent
Blog posts target long-tail SEO keywords (e.g., "best budget olympic barbells under 300"). Each post should include affiliate links, comparison tables, and clear product recommendations.
Required Frontmatter
title: "Post Title"
slug: "url-slug"
date: "YYYY-MM-DD"
excerpt: "Short description for blog index cards"
author: "GarageGymScout"
keywords: "comma, separated, seo, keywords"
Conventions
- Filename should match the slug (e.g.,
best-budget-power-racks-under-500.md). - Files starting with
_are excluded from rendering. - Markdown supports GFM tables and standard formatting via remark-gfm.
- Posts are sorted by date descending on the blog index.
- Rendered HTML uses the
.proseclass styles fromglobals.css.
Gotchas
- The
slugfrontmatter field overrides the filename-derived slug if present. - After adding posts, run
npm run generate:sitemapto include them in the sitemap.