Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimal, responsive, and SEO-friendly blog template built with Astro.
Astro Zen Blog is a minimal, responsive, and SEO-friendly blog template built on the Astro framework, designed to turn Markdown and MDX content into a fast static blog.
Astro Zen Blog is an open-source blog template maintained by larry-xue. It takes Markdown and MDX files as input and produces a static site with tag organization, dark mode, RSS feed, sitemap, and local search. The template runs on Astro and uses Tailwind CSS for styling, with source code licensed under the MIT License.
src/content/blog/ directory with frontmatter fields for title, description, date, tags, and cover image; MDX is supported for richer content.homepage.tags and homepage.excludeTags options in src/config.ts.tailwind.config.js.search flag in the site configuration.src/config.ts to collect visitor statistics.npm run build.src/config.ts, then publish posts in Markdown to get a static blog with RSS and sitemap.npm run new-post script to scaffold new posts quickly.Install the template with the Astro CLI using npm create astro@latest -- --template larry-xue/astro-zen-blog, then run npm install and npm run dev for local development. Create posts in src/content/blog/ using the provided frontmatter template; optionally use npm run new-post with a filename to generate a new Markdown file. Build the site with npm run build and deploy the static output to Cloudflare Pages.
Yes, the template is open source and released under the MIT License, so you can use it for personal or commercial projects without cost.
You can run npm run new-post followed by a filename, which creates a new Markdown file in src/content/blog/, or manually create a file with frontmatter containing title, description, date, tags, and an optional cover image.
The src/config.ts file controls the site URL, title, slogan, description, social links, homepage post count and tag filters, Google Analytics ID, and whether local search is enabled.
Run npm run build to generate a static site, then deploy the output to Cloudflare Pages; the README includes a link to the official Cloudflare guide for Astro sites.
