Building my personal website with Astro
How I built my personal website with Astro, Markdown and Docker: choosing a stack, redesigning the first draft, and moving from GitHub Pages.

I already had a personal site on GitHub Pages. It had my posts, it worked, and I could send someone a link to something I had written. Then I wanted my own domain. I already had a VPS with Caddy running on it, so adding one more container didn’t seem like a big deal. Get a homepage, bring over the old blogs, put it behind the proxy and done. Right?
Well, the container was the easy part. Figuring out what I wanted the site to look and feel like took a few more attempts. 😄
This is how I ended up building this personal website with Astro, keeping the posts in Markdown and serving the result from Docker. Along the way, I also had to decide whether the guy who writes about infrastructure was allowed to mention that he plays goalkeeper and listens to metal. Apparently, I needed to ask that about my own website.
WordPress or a Markdown blog?
The first question was how I wanted to publish. We build Tenwrite, which helps people publish from Google Docs to WordPress and Blogger. Using WordPress would have given me a familiar publishing route, and I did consider having a main personal site with a separate WordPress blog.
But when I thought about how I wanted to work on this particular site, the answer was simple: Markdown in the repo, then rebuild. I was already comfortable with Git. I wanted to keep the writing alongside the site, review the changes and have one thing to deploy. WordPress could do the job, but I didn’t need a separate application and database for the workflow I had chosen.
Astro fit that quite well. Each post is a Markdown file. The build reads the content, validates its metadata and generates the pages. The finished output is static HTML, CSS, fonts and images. Nginx serves those files. There is no running Node application waiting for someone to open a blog post.
The arrangement looks like this:
Markdown posts + Astro templates + images
|
| npm run build
v
Static files in dist/
|
v
Nginx container :8080
^
| shared Docker network
|
Existing Caddy container
^
|
aakashhowlader.com
Astro’s Markdown support and content collections cover the framework side of this. In this repo, the post schema lives in src/lib/post-schema.mjs, while the page at src/pages/blog/[slug].astro gives each article its layout. I didn’t need a custom publishing service between those two things.
The first design worked. I still didn’t like it.
I used a coding agent to help build the site. Before getting into the HTML, I asked for pictures of a few possible designs, including what an article page would look like. Describing a layout and seeing it are very different experiences, especially when you aren’t sure what you want yet.
The first version had a cream background, restrained green accents and a large serif introduction. Selected writing on one side, projects on the other, latest posts below and a contact section. It was readable and had the things I had asked for.

The first version. This is a saved screenshot of the actual site, including the posts and project descriptions it had at the time.
After looking at it for a while, though, I said it had no personality or oomph. It felt generic. I could have replaced the name and project descriptions with someone else’s and most of it would still have made sense.
I mean, nothing was broken. That was what made it harder to explain. The page said I built software, wrote about problems and had projects. All true. But that was also almost everything it said about me.
Football and metal were allowed in, too
During the next round of design discussions, I brought up the other things I spend time on. I watch football. I play in goal. I listen to metal. I’m an Arsenal fan. None of that had made it onto the page because I had been thinking about the site as a developer portfolio.
I even asked whether I could write about football and music in the same blog, or whether it should only have tech posts. Looking back, that’s quite funny. I had my own domain and was still checking whether I was allowed to put my own interests on it. LOL.
We looked at three more directions before changing the code. One was closer to an author’s site, another felt like a field notebook, and the third was a dark, music-zine style design. I picked the third. We called it Backstage.
The palette became charcoal, bone white and a little pale yellow. The headings became larger and more condensed. The illustrations had that rough, engraved print look. A goalkeeper glove, a net and a record could sit next to my name without needing a paragraph explaining how football improved my engineering skills.

The Backstage homepage from the redesign. The writing and projects stayed; the page finally had room for the other interests as well.
We also drew an article page before building that part. I wanted the same visual style, but the body still had to be comfortable to read. Large headings and rough artwork around a clean reading area made more sense than putting texture behind every paragraph.
The stack didn’t change during this redesign. Astro still built the pages and Nginx still served them. Most of the work was deciding what belonged on the page, then changing the layout, typography and artwork to suit it.
Editing a post shouldn’t mean editing the homepage
Once the site existed, I started asking the questions that matter after the first screenshot. Where do I add a post? How do I choose which ones appear on the homepage? What happens when I want to stop featuring a project?
For posts, the answer is the Markdown frontmatter. This is the sort of file I add under src/content/blog/:
---
title: "What I learned building my personal site"
description: "The decisions behind the site, from Markdown publishing to the redesign."
date: "2026-10-26"
draft: false
selected: true
tags: ["Building", "Personal"]
---
The post starts here.
The filename becomes the article’s URL. A file called my-site-story.md becomes /blog/my-site-story/. The title, description, date and tags belong to the document. draft: true keeps a post out of the published build. selected: true puts it in the selected writing section, and the homepage picks up the latest published posts separately.
That selected flag was something I specifically asked for. I didn’t want to edit homepage markup or rearrange a list every time I wanted to feature a different article. It is our own site convention; the homepage reads the flag and filters the posts.
Projects follow the same idea, although their entries are objects in src/lib/projects.ts rather than Markdown documents. Each has a name, URL, description, a kind label and a selected flag. Turning the flag off removes a project from the homepage selection while keeping it in the project directory. That also gives me a place for something I’ve archived without pretending it is still actively being built.
The About page and homepage copy are editable too. I put the instructions in the README because I knew I would forget which file controlled which bit after leaving it alone for a few weeks.
Cover images without making writing a chore
When we were looking at the article design, I had another concern. Did this mean I now had to make artwork every time I wanted to write something? And what about all the old posts that didn’t have any?
I liked the illustrated covers. I didn’t want them to become a reason to postpone publishing.
So covers are optional. When I have one, I put the image under public/images/blog/ and add two fields to the post:
cover: "/images/blog/my-site-story.webp"
coverAlt: "An open notebook beside a goalkeeper glove and a record."
The article layout uses it, and the metadata gives it to social previews as well. If I leave out both fields, the article still works. The schema checks that an image has accompanying alt text when I do add one.
We went back and added covers to the existing posts so they fitted the new design. The original writing didn’t need to become a different article just because the page around it had changed. Later, working on images for this site and Tenwrite led to the AI image and SVG workflow I wrote about: generate the part that benefits from illustration, then keep the foreground elements editable when that suits the job.
Moving from GitHub Pages meant keeping the old links
Bringing the old posts over was part of the job from the start. I already had writing on aakashh242.github.io; starting a new site didn’t mean I wanted to discard it or make people find it again.
We kept the article bodies and original publishing dates, moved the posts into the new content directory and mapped the old URLs to their new destinations. That last part mattered because the old site used dated Jekyll paths, while this one uses shorter article slugs.
I did ask whether I could just delete the old repository. I kept it published with redirects instead. The GitHub Pages version uses HTML redirect pages with a canonical link pointing to the matching article on the new domain. On the new site, Nginx also returns HTTP 301 redirects for the old dated paths that reach it. Those are two different parts of the migration: the new server can’t answer a request that still goes to GitHub Pages.
Google’s site-move guidance describes the URL mapping and redirect work involved. For me, the practical rule was to keep the route from an old link to its article working. Updating a headline later shouldn’t require changing the filename and breaking the URL again.
One container, an existing proxy and a manual deploy
The site has a multi-stage Dockerfile. The build stage installs the dependencies, runs the tests and builds the pages. The runtime image contains Nginx and the generated files. The Compose service joins the existing Caddy network, whose actual name comes from .env.
That was also where I stopped and asked why the Compose file had no published port. The site listened on 8080, so surely I needed 127.0.0.1:8080:8080 somewhere?
Caddy was already in a container on the same Docker network. It could reach the site at aakash-site:8080 directly. The alias was just aakash-site; the port belonged in the upstream address. Those questions eventually became the Caddy and Docker Compose guide, including a runnable example and a 502 you can reproduce.
After changing the content and pulling it on the VPS, the deploy is:
docker compose up -d --build
It rebuilds because the Markdown becomes HTML at build time. Editing a source file doesn’t change the files Nginx is already serving.
I briefly had another idea: could the container watch Git, pull a release and restart itself? We discussed deployment tools as well, but I chose to keep this site manual for now. If everything gets automated, when do I get to exercise the command muscles? 😄
There were still a few useful checks to keep. Drafts shouldn’t leak into the build. Selected posts and projects should follow their flags. Dates and required metadata should be valid. Internal links and cover images should resolve. One Docker build even failed because a publishing test assumed a particular homepage heading, and editing that heading broke its match. We fixed the test to identify the section independently of its wording.
Using an agent made the work faster, but it didn’t remove the need to look at what it had built. I had already written about that ownership problem in A skill issue. This site gave me another small example of it, including a first design that satisfied the request and still wasn’t what I wanted to keep.
Now I have somewhere to put the next thing
The site has its writing, projects, an About page and a way to get in touch. I can add an article without rebuilding the homepage by hand, feature something through its metadata and change the design without moving the writing somewhere else.
What I like most is that I don’t have to find a professional justification for everything I put here. A post about a Linux drive can sit near me worrying about my GPU. If I write about Arsenal or a day in goal, it can live here too. The tags can tell a reader what they’re getting into.
I started out wanting my own domain and a container. It took a working first version, another round of pictures and a few conversations about things outside software before I wanted to call the result mine.