Blog template built on Astro, with content stored in Markdown in the src/content/posts directory
astro-blog — Astro Blog Template
By babybluue
An open-source blog template built on Astro, offering a post generation script and an abbrlink short-link field, released under the MIT license.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Provides a generate.cjs script to generate new post Markdown files via the yarn run new command
Generated posts automatically include title, date, and abbrlink short-link fields in their frontmatter
When creating a post, you can specify the title and target directory; the default directory value is drafts
Released under the MIT license, with an online demo site provided in the repository
Template Details
astro-blog is a blog template built on Astro. The repository is maintained by babybluue, released under the MIT license, and provides an online demo site. The template targets personal writing and article publishing scenarios, with content stored in Markdown form in the src/content/posts directory.
The repository includes a generate.cjs script for creating new posts. Using the command yarn run new --title='Title' --dir="posts", you can specify the title and target directory (the default directory value is drafts). The script generates the corresponding Markdown file under src/content/posts and automatically writes three frontmatter fields: title, date, and abbrlink, where abbrlink is the post's short-link identifier.
The README only explains the post creation process and license information; it does not describe theme styles, deployment methods, or additional features. Therefore, the template's specific page structure and configuration should be based on the repository code. The licenses for third-party assets such as demo images, fonts, and icons must be verified separately; the MIT license covers only the code of this version itself.
Is it right for your project?
Use Cases
- Individuals setting up a static blog written in Markdown
- Sites that need to generate an abbrlink short-link identifier for each post
- Writing workflows that want to quickly create post drafts using a command-line script
Suitable For
- Individual bloggers who use Astro and are accustomed to writing in Markdown
- Site maintainers who need a short-link field to manage post URLs
- Developers who want to modify the code themselves based on MIT-licensed code
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
The command to create a post is yarn run new --title='Title' --dir="posts"; the default value of the directory parameter is drafts
- 2
Generated post files are located in the src/content/posts directory
- 3
The README does not explain installation, build, or deployment steps; refer to the repository code and other documentation
- 4
Third-party assets such as demo images, fonts, and icons must be verified separately under their respective licenses
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis listing covers the free version in the public repository released under the MIT license; the free scope is the code of this version and does not mean that external services or third-party assets are free.
Must comply with when using
- You are allowed to use, modify, commercialize, and distribute the code of this version for free.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the complete MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Demo images, fonts, icons, and other third-party assets must be verified under their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur additional charges.
View Original Text Basis
https://github.com/babybluue/astro-blog/blob/master/LICENSEhttps://github.com/babybluue/astro-blog/blob/master/README.mdPermission is hereby granted, free of charge
Original License Text
Compiled by DeepSeek based on repository license and README ·2026-10-04. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- Astro Themes
- Documentation and maintenance reference score
- More documented · 79 / 100
- Technologies
- Astro
- Website type
- Blog
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-06-12
- Screenshot last checked
- 2026-10-04
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Astro as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: [email protected] · 2026-10-04
Inspect the recorded source material
SHA-256: 066b81fa81e1c091b02ca897a51185619ab958461367fabb604a416b71e9b74d
2026-10-04T11:50:12.855Z
Source file / repository# astro blog   ## How to create a new post with abbrlink `generate.cjs` file will help to create a new post with params title and dir, the dir default is drafts. ```bash yarn run new --title='title-test' --dir="posts" ``` The command will generate a markdown file under _src/content/posts_ directory, and the markdown file content will look like this: ```yaml --- title: title-test date: 2024-04-18T02:50:36.418Z abbrlink: 21cdefe2 --- ``` ## License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Explore similar templates
Compare previews and descriptions within the same stack and category.

astrowind
AstroWind is a free, open-source Astro starter theme using Astro and Tailwind CSS, released under the MIT license.
Astro · Blog

astro-paper
AstroPaper is a minimal, responsive, accessible, and SEO-friendly Astro blog theme. Articles are stored as Markdown/MDX in src/content/posts/, with subdirectories affecting URLs.
Astro · Blog

fuwari
Fuwari is a static blog template built with Astro and Tailwind CSS for personal blogs. It manages posts as Markdown files in src/content/posts/, with frontmatter for title, date, description, cover, tags, categories, draft status, and language.
Astro · Blog

Firefly
Firefly is a clean personal blog theme forked from Astro and Fuwari, offering four background modes, single/double sidebar and list/grid layouts, Pagefind client-side full-text search, and a six-language UI.
Astro · Blog

astro-theme-cactus
Astro Cactus is an Astro-based blog and portfolio theme that uses Markdown/MDX content collections to manage posts, notes, and tags, with frontmatter type-checked by a schema.
Astro · Portfolio

astrofy
Astrofy is a free and open-source personal portfolio website template built with Astro and TailwindCSS, with built-in blog, CV timeline, project showcase, store, and RSS feed modules.
Astro · Portfolio
