How Is My Blog Built and Deployed?
When I first built this blog, I simply wanted a place on the internet to publish my writing.
But once I started running it, I found myself thinking about how to write posts, generate HTML pages, and deploy the website.
Today, I write articles in Markdown, convert them to HTML with Node.js scripts, and automatically deploy the site to Cloudflare using GitHub Actions.
The flow at a glance
Markdown draft → Node.js generator → static pages in dist/ → GitHub Actions → Cloudflare Workers Static Assets
I write each post in Markdown, and a Node.js generator reads its metadata and three language versions to create static HTML pages. When I push a change to main, GitHub Actions checks the publishing rules, builds the site, and deploys it to Cloudflare. Visitors receive the deployed static files instead of having pages generated on demand.
There is no separate content management system (CMS) or database.
These are not especially unusual technologies. I have simply combined well-known tools in a way that fits my needs.
In this post, I want to explain how the blog works and why I designed it this way.
I covered my reasons for moving away from self-hosting in “Why I Moved My Website Away from Self-Hosting”. Here, I will focus on the blog's current implementation.
1. Why did I choose Markdown?
Markdown is the format I use to write blog posts.
It is a lightweight markup format that uses simple symbols in plain text to represent headings, paragraphs, lists, links, and more.
It expresses document structure much like HTML, but its simpler syntax makes the original file easier to read.
For example, I can prefix a line with # to create a heading or wrap a phrase in ** to make it bold. In HTML, I would have to write the corresponding tags.
That does not mean HTML is a bad format. It is the standard language used to represent web pages, and my Markdown ultimately becomes HTML before a browser displays it.
So why not write HTML directly?
The reason is simple.
Markdown is easier for me to read and review.
AI can prepare a draft, but I am still the one who reads it
I use AI extensively when preparing blog articles.
I do not always type out every sentence myself.
Sometimes I speak whatever comes to mind and use speech transcription to turn it into text. That transcript may contain interruptions, repetitions, and ideas presented out of order.
I give the transcript to AI and ask it to organize the material into a readable article. When needed, I ask it to refer to earlier posts or check technical explanations that need clarification.
But I do not publish the AI's output without reviewing it.
I read the draft myself, check whether it has changed what I meant, look for factual errors, and consider whether the final wording conveys my original point.
To do that, I need a format that is easy to read.
Perhaps AI finds HTML just as easy, or even easier, to generate than Markdown. That is not the criterion I care about. I care more about how easily I can inspect the result.
HTML source contains many tags and attributes. Even when I only want to read the words, the document structure is mixed into the text.
Markdown lets me read headings and paragraphs almost like ordinary prose. It is consequently easier to spot awkward wording or change a particular paragraph.
I did not choose Markdown because it is inherently superior to HTML.
I chose it because even when AI helps produce the draft, a human should be able to understand and check the final content.
2. Managing three languages in one Markdown file
My blog currently supports Korean, English, and Japanese.
I do not store each translation in a separate file. Instead, all three versions of an article are kept together in one Markdown file.
At the top is a metadata block called frontmatter. It records the title and description in each language, along with the publication date.
Below the metadata are three article bodies separated by these markers:
<!-- lang:ko -->— Korean<!-- lang:en -->— English<!-- lang:ja -->— Japanese
The generator recognizes the markers and extracts the content for each language.
A single file can therefore produce three pages.
For example, given example-post.md, the generator creates separate HTML output under language paths such as /ko/blog/, /en/blog/, and /ja/blog/.
The full article URLs also contain the publication year, month, and filename-based slug.
Why not separate the translations into individual files?
Again, there is no grand technical reason.
I like keeping related content together.
If I maintained three separate files, changing one post would mean finding and opening multiple files.
Separate files do have advantages. They can make independent translation workflows or collaboration between translators easier.
But I currently run this blog by myself.
Having all three versions visible in one file is simpler for me.
I usually write the original in Korean, then translate it to English and Japanese with AI assistance.
That does not guarantee the translations are perfect. Meaning can shift, and whenever I change the original I also need to check the translations.
At the scale of my current blog, though, this arrangement is manageable.
3. My Markdown-to-HTML blog generator
Writing Markdown alone does not automatically create a finished page in the visitor's browser.
The content must be converted to HTML.
I automated that work using Node.js.
My repository includes a script named scripts/blog/generate.mjs. It scans the designated content directory, reads Markdown files, extracts their information, and generates HTML pages.
The process is roughly as follows:
- Find Markdown files in the blog directory.
- Validate titles, descriptions, publication dates, and other metadata.
- Separate the Korean, English, and Japanese sections.
- Convert Markdown syntax into HTML.
- Generate article pages and indexes for each language.
Everything happens during the site build.
The blog does not read Markdown or create HTML anew every time someone opens a page. Visitors receive static HTML files generated ahead of time.
I deliberately avoided unnecessary complexity
The generator supports the Markdown features I need: headings, paragraphs, lists, blockquotes, fenced code, inline formatting, and links.
It also builds a table of contents from headings.
Posts are sorted by publication date, and each language has its own blog index. The index is set up to show 20 posts per page as the blog grows.
I have not attempted to implement every feature a general-purpose Markdown processor might offer.
I saw no reason to add capabilities that my writing process does not need.
This is related to the philosophy described in “Six Principles That Guide How I Design Software”.
Of course, fewer features are not always better. If I eventually need an unsupported feature, I may have to extend the generator.
For now, however, I like having a system I can understand and maintain myself.
One invalid post should not break the entire blog
The generator validates the structure of each article.
If required metadata is missing or the language sections are incomplete, that file is not treated as a valid post.
For example, a post with an empty translation is excluded from publication.
But the problem does not prevent other valid posts from being generated.
The invalid file is skipped and processing continues.
I need these checks because I cannot guarantee that every file will always be formatted perfectly, especially when AI helps with drafting and translations.
The automation therefore covers basic validation as well as conversion to HTML.
4. Why I do not use React, and what Markdown does for me
My current website is not a React project.
It is a static website made with HTML, CSS, and JavaScript.
A framework such as React provides reusable components. For instance, a blog heading, body, and table of contents could be rendered repeatedly with different data.
My website does not have that framework-based component system.
That does not mean it has no code reuse. My generator already builds a common page structure and applies it to multiple posts.
Still, writing a separate HTML page manually for each article would be tedious.
I would have to repeat document structure, table of contents, and layout along with the new title and body every time.
That is not how I want to manage a blog.
Instead, I separated the content from its presentation.
The article itself lives in Markdown, and the generator creates the HTML.
When writing a new article, I can focus on the words rather than the structure of the resulting web page.
For me, Markdown is not only a writing format. It is an intermediate format that separates content from implementation.
5. Automatic deployment using GitHub Actions
The website's source code is managed in a GitHub repository.
For deployment automation, I use GitHub Actions.
GitHub Actions can execute predefined tasks when certain repository events occur. My workflow starts whenever a change is pushed to the main branch.
It sets up Node.js 24 and then:
- Checks out the source code.
- Installs dependencies with
npm ci. - Runs
npm testto check blog publishing rules. - Checks that Cloudflare deployment credentials are configured.
- Builds the static site with
npm run build. - Deploys it with
npx cf deploy.
The main build script is scripts/build.mjs.
It prepares existing static pages, CSS, JavaScript, and other assets in the output directory named dist.
It then generates localized pages, runs the Markdown blog generator, and applies additional processing to the resulting HTML.
Finally, dist contains the static files visitors will receive.
When I add a post, the Korean, English, and Japanese pages are generated during the same build.
I do not have to log into a server, manually copy files, or restart a process whenever I publish.
Adding the Markdown file to GitHub and pushing it is enough to trigger the workflow.
Automation does not mean failures are impossible. A test or build error can prevent deployment, so checking the GitHub Actions results still matters.
6. Hosting with Cloudflare Workers Static Assets
The last part is hosting.
Cloudflare manages my domain's DNS, and I serve the static site using Cloudflare Workers Static Assets.
The name is a little long, but the idea is simple: Cloudflare delivers the built HTML, CSS, JavaScript, and other static files.
GitHub Actions deploys the contents of dist to Cloudflare, where visitors can request them through my website.
One distinction is important.
I use Node.js to build the site, but there is no Node.js server running on my personal computer for each incoming visitor.
Node.js runs mainly during the build process. After deployment, Cloudflare serves the generated pages.
This means the blog does not depend on my home server staying online to serve its static content.
When I self-hosted the site, I had to worry about network routes and maintaining the server. Now I do not need to monitor my own web server simply to keep the blog available.
Cloudflare or its deployment configuration could still have problems, of course.
Even so, this approach works well for my needs.
7. What actually happens when I publish a post?
Putting everything together, my current workflow goes like this.
First I choose a topic.
I then write my thoughts or speak them aloud and prepare a transcript.
I give that material to AI to turn it into a structured draft.
I read the draft and check it myself.
If something does not reflect what I intended, I revise it. If explanations are missing, I add details.
When I am satisfied, I translate the article into English and Japanese.
I put the three bodies and their metadata in one Markdown file.
Once I add the file to GitHub and push it to main, GitHub Actions runs the tests, builds the static site, and deploys to Cloudflare if everything succeeds.
That is how the new post appears on the blog.
From my perspective, publishing is not especially complicated anymore.
I do not need to write individual HTML files or connect to a server for deployment.
Most importantly, the whole process revolves around a Markdown draft that I can easily read and edit.
8. Advantages and disadvantages I have experienced
The biggest benefit so far is the separation of writing from page generation.
I do not have to think about HTML tags when composing an article.
I can open a Markdown file, read the content directly, and edit it comfortably.
The generator turns that file into HTML using the site's existing design.
I also do not need to copy the HTML structure of an earlier post when adding a new one.
Even without React, my generator automates much of the repetitive HTML work.
Combining Markdown with a custom generator has therefore worked well for me.
Of course, I am responsible for maintaining that generator. New Markdown features may require changes to the script, and redesigning the site may require changes to its HTML output.
But I do not currently see those possibilities as serious disadvantages.
So far I have not experienced any significant inconvenience.
The system provides the features I need, and I am satisfied with how writing and publishing work.
If the blog grows or I need more functionality, I may change my mind.
If that happens, I will probably write about it.
Closing thoughts
My blog is built by writing Markdown, generating HTML with Node.js, and deploying the site to Cloudflare Workers Static Assets through GitHub Actions.
But I did not choose this setup just to use particular technologies.
I wanted to reduce repetitive work and spend more time writing and reviewing my articles.
Even with AI involved in drafting, I believe a human should check the final output.
Markdown makes that process easier for me.
For now, this setup suits how I want to run my blog.
The website and workflow may change as I add features, but I am satisfied with the current arrangement.
If I run into problems or discover a better approach, I want to record that too.
After all, the blog itself is another project through which I build, operate, and learn.