A small Astro 7 blog starter in TypeScript for developers and writers who want a Markdown blog and nothing to remove. It has a typed content collection, drafts, a shared layout, and home, blog, post, about and 404 pages, all prerendered to static HTML.
by Light CloudBlogs


It started from Astro's minimal template and adds only what a blog needs: a content collection with a schema in src/content.config.ts, a getPosts() helper in src/lib/posts.ts that drops drafts and sorts newest first, and four small components. getStaticPaths in src/pages/blog/[id].astro creates one page per published post. Change the site title and description in src/consts.ts first, then replace the two sample posts. It builds with npm run build into dist/, and each push to your copy redeploys, so publishing a post is a commit.
Yes. This one is MIT licensed and a GitHub template repository, with Markdown posts, drafts, a typed content collection and home, blog, post, about and 404 pages.
Create a Markdown file in src/content/blog/, such as my-post.md, with title, description and pubDate in the frontmatter. It appears at /blog/my-post/ and in the post lists on the next build.
Create a file in src/pages/, such as contact.astro, wrap its content in BaseLayout with a title, and add the link to the links array in src/components/Header.astro.
Yes. Run npx astro add react (or vue, svelte, mdx) to install the integration. The blog collection already loads .mdx files once the MDX integration is added.
Yes. Run npm run build and upload dist/ to any static host; every page is a real HTML file, so no SPA fallback or server adapter is needed. Point the host's not-found page at dist/404.html.