AstroBlog

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.

3 previews
Desktop homepage1 / 3
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 3

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-04View source

What stands out

A quick read of the recorded project description.

01

Blog template built on Astro, with content stored in Markdown in the src/content/posts directory

02

Provides a generate.cjs script to generate new post Markdown files via the yarn run new command

03

Generated posts automatically include title, date, and abbrlink short-link fields in their frontmatter

04

When creating a post, you can specify the title and target directory; the default directory value is drafts

05

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.

AstroBlog

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. 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. 2

    Generated post files are located in the src/content/posts directory

  3. 3

    The README does not explain installation, build, or deployment steps; refer to the repository code and other documentation

  4. 4

    Third-party assets such as demo images, fonts, and icons must be verified separately under their respective licenses

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This 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

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

![Index](/src/data/images/c3009907.png)
![Lighthouse](/lighthouse.png)

## 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.
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.