A blog you can host with Astro and Markdown
Scorpse used to be my WordPress blog. When I brought it back, I wanted posts I could keep as files. That gave me a simple publishing loop. A post is a Markdown file with a little metadata. A Git commit records the change. Astro renders the site, and the host serves the resulting files. The Markdown is still there if I want to read it in another tool or build the site differently later. Scorpse
How I write on Scorpse
I built Scorpse Writer, a Windows desktop app with a Rust backend and a Tauri interface. It gives me the writing and publishing tools I wanted for a Markdown blog. I can write an article, a short note, or a link post, save it as a private local draft, and come back to it later.
Write the post
I start in Write. The editor handles formatting for headings, links, code blocks, and tables. In Post details I set the summary, tags, and permalink, and I can attach up to five images. I can insert them into the article, add alt text, and choose a cover.

Check the Markdown
Source opens the same draft as editable Markdown and YAML frontmatter. I use it when I want to adjust a code fence, check an image path, or see exactly how a post is represented as a file.

Preview and publish
Preview renders the draft with the local Scorpse Astro site. I can check the layout at desktop and phone widths before the post goes live.

When I choose Publish, Writer validates the post and builds a local snapshot before committing. It puts the Markdown at content/posts/<slug>/index.md and the referenced images under that post's assets/ folder. It commits those files and pushes to the configured GitLab branch. The pipeline builds the static site with Astro and deploys the output to Azure Static Web Apps. Writer checks the live deployment against the exact version it pushed.
Set up a small Astro blog
Here is the same file-to-site workflow with Astro's stock blog template. Scorpse Writer uses this site's own post layout and Git workflow. The steps below work with a text editor and a terminal.
1. Start with the Astro blog template
Install Node.js and npm. I used Node.js 24 for this example. Run these commands in the folder where you want to keep the project. Astro installation guide
npm create astro@latest -- field-notebook --template blog --no-install --no-git --yes
cd field-notebook
npm install
npm run devOpen the local address that Astro prints. The template includes example posts, a blog index, and a layout.
2. Write a Markdown post
Create src/content/blog/a-first-note.md with the following content. The block at the top is YAML frontmatter. The blog template uses its title, description, and date when it lists and renders posts. Astro content collections
---
title: "A first note"
description: "A short note from my field notebook."
pubDate: 2026-11-10
---
A small idea worth keeping.Open /blog/a-first-note/ on the local site. Once you’ve checked it, replace the sample posts and update the template’s site title and description in src/consts.ts.
3. Build and host it
Set the site value in astro.config.mjs to your public URL, keeping the template’s other settings. Then build and preview the static output.
npm run build
npm run previewThe deployable site is in dist/. Check the homepage and the new post in the preview before you publish.
One way to host it is a GitHub Pages user site. Create a repository named YOUR-HANDLE.github.io, set site to https://YOUR-HANDLE.github.io, and add the workflow from Astro’s Pages guide as .github/workflows/deploy.yml. In the repository’s Settings → Pages, select GitHub Actions as the source. Commit the project and its npm lockfile and push to main. The workflow builds and publishes the site. For a repository served at a subpath, configure Astro’s base and make internal links and assets honor that prefix. Astro’s GitHub Pages deployment guide
Start with the reusable template
I put the Astro Markdown Starter on GitHub with a sample post, a date-sorted archive, RSS, and light and dark themes. I also built a separate desktop app called Astro Markdown Writer for people who want to publish to their own copy. Its Rust and Tauri source is available under the MIT license. Live starter demo · Writer source and setup guide
- Fork the starter into your GitHub account. Use this template also works if you want an independent copy. Edit
src/site.tsin your new repository to set the blog name and description. Fork on GitHub - Connect Writer. Open the app and paste your blog repository URL and a GitHub personal access token with write access to that repository. Fine-grained and classic tokens use the same field. The guide lists the permissions for posting and automatic Pages setup. Writer keeps the token in memory for the session. Windows installer · Linux build instructions · Token permissions
- Set up and deploy the site. Writer configures GitHub Pages, enables the starter workflow if needed, and queues the first deployment when the token permits it. If GitHub requires a repository owner to finish setup, the app links to Pages settings and deployment runs.
- Write and publish a post. The draft stays on your device while you write and preview it. On publish, Writer commits
src/content/posts/<slug>/index.mdand its attached images to your repository's default branch. GitHub Actions runs Astro, builds the static files indist/, and deploys them to GitHub Pages.

I tested the flow on a repository created from the starter. Writer set up Pages and committed a Markdown post with an image. GitHub Actions built and deployed it, and both the post and the image loaded from the public site. Published demo post · Deployment run
For local development, clone your copy and run npm ci followed by npm run dev. A fork keeps the shared Git history, so you can fetch a starter release tag and merge it on a branch to review the changes alongside your own posts. Starter setup and updates