Why this site is a static site
For a while this blog ran on WordPress. It worked. Publishing a post still felt like admin work: a theme, a handful of plugins, a database, and a login I only opened when something looked wrong.
I rebuilt it as a static site. Every page you are reading is a file that was rendered ahead of time and copied to the server. There is no database behind this request, and no PHP running to assemble the page.
What “static” means here
A post is a Markdown file in src/content/blog/. It has a small block of frontmatter — title, description, date, tags — and then the writing. Astro reads those files at build time and writes plain HTML into a dist/ folder.
That folder is the whole site. A push to main builds it in GitHub Actions and uploads it over FTPS. The server’s job is to hand back files. It does not run the blog.
A few consequences follow from that, and they are the reason I switched.
Pages are fast because there is nothing to compute. The HTML, the CSS, and the font files are the response. A cache in front of that is optional, not load-bearing.
The writing is just text in git. I can diff a post, revert a bad edit, and read last year’s version. I could not do that honestly with posts sitting in a database behind an admin screen.
There is very little to patch. The attack surface of a static host is the web server and the deploy credentials. There is no wp-login.php, no plugin that needs an update on a Sunday, and no comment form for someone to stuff credentials into.
What I gave up
A static site is a bad fit if you want things that happen at request time.
Comments need a third party or a rebuild. I don’t have comments here. If you want to argue with a post, the contact page is the door.
Search is not a database query. This site builds a small JSON index and searches it in the browser. That is fine for a few dozen posts. It would be the wrong design for an archive of thousands.
Anything that depends on “who is logged in” does not belong here. A private page can be unlisted and kept out of the sitemap. It cannot be actually private, because the HTML is a file the server will give to anyone who asks for it. I treat that as a property of the setup, not a bug to paper over.
The part that surprised me
The constraint is useful. If a feature needs a server, I have to want it enough to add one. Most of the time I don’t. The homepage, the tags, the RSS feed, and this post are all the same kind of thing: a file, rendered once, served as-is.
That is a smaller blog than WordPress was willing to be. It is closer to the one I actually wanted.
You might also be interested
Read the diff that will actually ship
The chart changed. The cluster will apply something else. A short habit for reviewing GitOps changes.
Requests are not limits
What the scheduler reserves, what the kernel enforces, and why setting them equal is a decision rather than a tidying-up.
Pin the chart version, and never reuse the tag
The failure mode where git is right, the cluster is old, and nobody can tell from the commit.