Cevdet Haran

Astro Minimal Template

An Astro starter with typed metadata and browser-native defaults

Starts a new Astro website with titles, descriptions, link previews, a sitemap and output checks already in place, leaving the design to each project.

Unstyled on purpose, as a base to build on.

Home page of Astro Minimal Template

astro-minimal-template.pages.dev

Device
Home page of Astro Minimal Template on a desktop, light schemeHome page of Astro Minimal Template on a desktop, dark scheme

Drag the handle to compare light and dark.Left: your scheme. Right: the other one.

Home page of Astro Minimal Template on a phone, light schemeHome page of Astro Minimal Template on a phone, dark scheme

Drag the handle to compare light and dark.Left: your scheme. Right: the other one.

Facts

Role
Creator and maintainer
Kind
template
Status
shipped and kept up to date
Site
astro-minimal-template.pages.dev
Lighthouse
Performance 100 · Accessibility 100 · Best practices 100 · SEO 100,measured by PageSpeed Insights on the home page (mobile; performance the best of 5 runs, the rest the median), 21 November 2026
Repository
cevdetch/astro-minimal-template
Licence
MIT
Active
October 2026 to November 2026
Commits
28

Stack

Highlights

  • Includes optional build-time social cards, sitemap/robots output, canonical/noindex handling, a semantic 404 and automated build/output checks with deadhead.
  • Ships the default page with no application JavaScript, author CSS or downloaded webfont, leaving styling and scripts to each project.

Problem

A new Astro site needs the same head work every time: a title and description on every page, canonical URLs, social images, a sitemap and robots.txt that agree with what was built, a real 404 and a way to keep previews out of search results. Copying that from an earlier project also copies its canonical URLs and branding. The goal was a starter that gets the metadata right and stays out of the way of everything else.

Constraints

  • No personal values inherited. The checked-in configuration leaves site unset, and a production build fails until an origin is supplied, so a copied project cannot publish another site’s canonical URLs.
  • Browser-native by default: the starter page ships no application JavaScript, author CSS or downloaded webfont. Projects add their own styles and scripts through Astro’s ordinary support.
  • Every metadata choice has to hold under a subpath base, a canonical override, page-level noindex and a preview-wide noindex.
  • Building the template needs no external checkout, no image-generation service and no favicon tool.
  • Auth, databases, a CMS, a component library and client-specific content are out of scope.

Decisions

  • One layout, Layout.astro, owns the head. It requires a nonblank title and description and resolves canonical, language, direction, noindex and social metadata through typed helpers that validate URL syntax without fetching anything.
  • Social cards are optional and built locally: pages without a manual image get a 1200×630 PNG at build time, rendered with Satori and Sharp from a bundled, licensed Noto Sans. The renderer and font never reach visitors, and the README documents how to remove the feature entirely.
  • The sitemap and robots.txt follow the pages. A build-time collector reads each page’s indexing policy and feeds the actual emitted URLs to Astro’s official sitemap integration, so there is no route list to maintain. Pages marked noindex, error pages, redirects and pages that canonicalise elsewhere stay out. A finalizer then checks robots.txt against the sitemap that was actually written.
  • The layout emits og:image:alt only for image.alt text the author supplied and never invents alt from the title.
  • bun run verify checks the built output as well as the source, running type checks, unit tests, build tests, a fresh build, an output verifier and a deadhead audit of the emitted HTML. The verifier decodes generated PNGs and checks sitemap and robots references against the recorded selection.
  • A neutral, replaceable mark ships as a declared ICO plus optional SVG, Apple and PNG icons, named to match favseed’s output so a project can swap in its own set.

Results

  • The repository is a public GitHub template with a live demo, deployed by Cloudflare Pages.
  • CI runs the full verification on the minimum supported Node release and the latest LTS, with frozen installs, pinned Actions and read-only permissions.
  • The deadhead audit of the built demo reports no findings.

Next

  • Serve as the base for the first cevdet.ch consumer site, which adds its own palette tokens, generated brand styles and theme checks on top of the starter rather than inside it.
  • Maintain the starter for bugs, dependency and security updates, and needs a consumer has demonstrated. A shared feature joins the starter only after it has been reused.