I’m doing Blogvent, a challenge to blog every day in December. Today’s prompt is:
Day 1: Your blog’s architecture. Share the static site generator, hosting setup, and deployment pipeline powering your Blogvent posts.
Note: You can see what I plan to write about each day in the list of prompts.
This site is a Hugo statically rendered HTML application in the PaperMod theme, hosted on Vercel. It deploys automatically via a GitHub integration.
My publishing workflow begins by generating a Markdown file with the hugo
executable:
$ hugo new content content/posts/my-blogs-architecture.md
This creates an empty markdown file with placeholder metadata. I write the content in Vim, format with Prettier, spellcheck with Vim and Grammarly, review locally, and commit.
On each commit, a Husky Git hook runs a Playwright integration test. It checks that the code compiles and I haven’t deleted one of the main pages.
When I push to GitHub, Vercel builds the new code via a Vercel-GitHub integration. I can my changes live in under thirty seconds.
I arrived at this architecture after trying many alternatives: WordPress, a custom Rails application, and a Gatsby JavaScript application.
I love this architecture. Vim plus Markdown is a comfortable writing environment. Hugo is awesome and statically rendered sites are fast in production. The PaperMod theme clean and has the core features I need. I don’t customize it much; the theme is a Git submodule and just a few custom views. I set up the GitHub integration with one click. Vercel is well-suited to host this kind of application and provides a generous free tier. I also have Google Analytics and Google Search Console connected for metrics.
One thing I’ve learned after doing this for years: If you’re interested in blogging, pick a platform that lets you publish as simply as possible. If that means writing code, write code. If that’s Wordpress, use that. Whatever lets you ship is the best platform.