Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An Astro starter for agencies and studios with MDX blog, global search, RSS, sitemap, and light/dark/blue themes.
Astro Typewriter is an Astro starter template for agencies and studios that ships an MDX blog, Pagefind site search, automatic RSS and sitemap generation, and three color themes (light, dark, blue) with a persistent theme toggle. It takes type-safe content inputs — markdown or MDX posts, author and social YAML files — and produces a fully static HTML site ready to deploy to any static host.
Astro Typewriter is a static-site starter built on the Astro framework that produces a markdown/MDX blog with typed content collections, global search, and SEO metadata. It accepts content files placed in src/content/blog along with author and social data in YAML, and outputs a static dist folder. The template runs on Astro latest with Tailwind CSS for styling and uses Bun as its package manager, though npm scripts are also provided.
Running the starter is straightforward: install dependencies with bun install, start the dev server with bun run dev, and build the static site with bun run build. Content lives in src/content/blog as .md or .mdx files with validated frontmatter, while authors and social links are maintained in src/content/authors.yml and src/content/socials.yml. To deploy, upload the generated dist folder to your host of choice and set BASE_URL if publishing under a subpath.
Create a new .md or .mdx file in src/content/blog with frontmatter that includes a title, description, pubDate, and tags. Optional fields are updatedDate and heroImage. The template validates the fields via its typed content schema.
The page lists three requirements: Bun, Astro at the latest version, and Tailwind CSS. The dev server runs on localhost:4321 and production output is a static dist folder.
Yes. Both /rss.xml and /sitemap-index.xml are generated automatically at build time, so no extra configuration is needed for syndication or search-engine indexing.
Because the build is static HTML, you can upload the dist folder to Netlify, Vercel, Cloudflare Pages, or any S3 and CDN setup. If you publish under a subpath, configure the BASE_URL setting.