Hello World
This is the first post on this blog. It's a test to make sure everything works — Markdown rendering, code blocks, typography, and the overall layout.
Why build a blog from scratch?
Most static site generators come with a lot of machinery. Jekyll, Hugo, Gatsby — they're powerful, but for a simple personal blog they feel like bringing a crane to hang a picture frame.
This blog is powered by a single Bun script (~80 lines) that reads Markdown files from a posts/ directory, converts them to HTML using marked, and writes static pages into blog/. That's it.
What Markdown features are supported?
Pretty much everything you'd expect:
- Bold and italic text
- Links that go places
- Inline
codefor quick references - Images, tables, blockquotes
"The best writing tools are the ones that disappear."
Code blocks
def hello():
print("Hello from the blog!")
for i in range(3):
hello()
Lists
- Write a
.mdfile inposts/ - Run
bun run build - Push to GitHub
- Done
That's all there is to it.