You're up and running

This is the blog starter — a content-focused site with a homepage, blog index, post detail page, and an About page.

How the blog routes work

The site uses two patterns side-by-side:

  • /blog — listing page (builder page, template pages/blog/index.twig)
  • /blog/{id} — single-post page (builder page, template pages/blog/post.twig)

Each post lives as an object in the blog collection. Visiting /blog/my-post matches the /blog/{id} route and your post template loads the matching object via {% set post = cms.data.raw('blog', params.id) %}.

Add your first post

  1. Go to Collections → Blog
  2. Click + New Object
  3. Fill in title, summary, and content
  4. Save — your post appears at /blog/{id} immediately, no rebuild needed

Sample posts

The starter ships a handful of pre-loaded posts so the listing and detail pages have something to render. Browse them at /blog or edit them at Collections → Blog. Delete them whenever you're ready to publish your own.

Customizing

  • Layouttcms-data/builder/layouts/default.twig
  • Listing pagetcms-data/builder/pages/blog/index.twig
  • Post pagetcms-data/builder/pages/blog/post.twig
  • Post cardtcms-data/builder/partials/post-card.twig

Learn more