This Blog's Tech Stack
The tech powering this site is dead simple. The whole setup has two parts - 1) a handcrafted template in HTML + CSS, and, 2) a generation script containing 143 lines of non-minified Javascript. That's it.
There is no React, no WordPress, no AWS.
The page you're reading is static HTML. That's why it's blazing fast.
If you view the source, you'll see there's only one Javascript function. It's for displaying the greeting in the header.
There's no backend either. I'm just serving static files with a URL rewrite (e.g. https://stephenou.com/posts/tech-stack.html
).
Here's what my workflow looks like:
- Write a post in Bear.
- Convert from Markdown to HTML using Showdown.
scp
the HTML to my VPS, which hosts this site.- Add the post to the config file.
- Run this script to generate the HTML for the post and update the homepage.
You're welcome to use the script (not the template though) to build your blog.