Getting Started

Starters

The minimal, blog and website starters of create-tenoncms, what each one adds and how they differ.

create-tenoncms asks which starter to use. A starter is the set of pages and content types a new project begins with. This page shows the three starters and what each one adds to your project.

The starter does not depend on your other answers. Every database, storage, image provider and host works with each starter. The three starters share one look, and Astro, Nuxt and TanStack Start render the same page.

Which starter to pick

  • minimal: you want to model your own content and start from an empty config. It is the default.
  • blog: you want to see how a page reads a collection. The Quick start uses it.
  • website: you want a site that editors build from blocks, with a menu and sample content.

Compare the starters

minimalblogwebsite
PagesOne static pageA home page that lists the posts, and post pagesAny page, built from blocks
Content typesNoneA posts collectionA pages collection and a main menu
Sample contentNoneNoneA Home and an About page, the menu and one photo
Light and darkFollows the system settingA switch in the headerA switch in the header
FrameworksAll. In standalone, the admin aloneAll. In standalone, the admin with postsAstro, Nuxt, TanStack Start

Every starter also has Settings in the admin, with the site title. See Settings.

The screenshots below show the Astro starters in a 1440 × 900 window. Switch the docs between light and dark to see both versions.

Minimal

The minimal starter: a welcome page with the site title, a button to the admin and a link to the docs

minimal is one page and an empty tenon.config.ts. Use it when you want to add your own collections.

  • The page reads only the site title from Settings. It shows "Untitled site" until you set one.
  • The rest of the page is static. It links to the admin and to these docs.
  • It follows the light or dark setting of the system. It has no switch.

Blog

The blog starter: a welcome page, the number of posts and a list of three posts with their dates

blog adds a posts collection and two pages that read it.

  • cms/collections/posts.ts holds the fields of a post: a title, a slug, an image and rich text.
  • The home page counts the posts and lists them, newest first.
  • Each post has its own page at /posts/<slug>, with its image and text.
  • A switch in the header changes between light and dark, and the browser remembers the choice.

The screenshot shows three posts added in the admin. A new project starts with "No posts yet."

Website

The website starter: a header with a menu, a hero block with a large title and two links, and an image block below

website is a small site that editors build from blocks. It shows how pages, blocks, the menu, media, SEO and live preview fit together.

  • Pages come from the pages preset, with SEO fields.
  • cms/blocks.ts defines four blocks: hero, image, text and list. Each block has a component of the same name.
  • The main menu holds the links in the header. Editors change it under Settings.
  • One route renders every page by its path. / is the page with the slug index.

A seed in cms/seed.ts fills a new database with the site title, a Home and an About page, the menu and one photo. The Home page explains each part of the site.

The seed runs on every database without content, so your first production database gets the sample content too. Once the site has its own content, delete the seed option from tenon.config.ts. The project's README.md lists the steps. See Seed content.

Change the look

The three starters use the same site.css. To change the look:

  • Change the colors and fonts in the CSS variables at the top of site.css.
  • Write each color as light-dark(light, dark), so it works in both modes.

In blog and website, the switch sets data-theme on <html>. Without a saved choice, the page follows the system setting.

Files in each framework

tenon.config.ts and the files in cms/ are the same in every framework. The pages and the stylesheet live where each framework expects them:

src/pages/index.astro          minimal and blog: the home page
src/pages/posts/[slug].astro   blog: a post page
src/pages/[...path].astro      website: every page
src/blocks/                    website: one component per block
src/styles/site.css            the colors and fonts

Each project's README.md lists the files to change first.