Personal Blog Setup
A look at the stack, design and features behind this site
- Human-Computer Interaction

This post is a high-level look at how this website is built. I’ll go over the tech stack, the design choices I made along the way, and the features that make the blog work.
Tech Stack
The site is built with Svelte 5 and SvelteKit 2, along with TypeScript and Tailwind CSS 4. I picked Svelte mainly because I had used it on a previous project. Its component system just clicked for me, and it stays out of the way.
There is no Content Management System (CMS) or database. The whole site is static — every page is prerendered at build time. For the blog, I went with local Markdown files processed by mdsvex. This means I can write plain Markdown, but I can also drop custom Svelte components right into a post.
Hosting & Deployment
The site is hosted on Vercel and linked to a GitHub repository. I use two branches:
devfor private preview buildsmainfor the live site
Pushing to either branch triggers a build and deploys it automatically. There’s no manual step involved.
I also use a custom domain. You can buy one from any domain registrar — I got mine from Hostinger and later pointed the DNS records to Vercel.
Design Principles
The first version of the design was heavily inspired by Framer-style websites and Apple’s Liquid Glass. The idea was a deep dark background with fluid gradients, neon accents and transparent floating UI.
It looked cool, but it was heavy and a bit distracting. So I toned the transparency and gradients way down. Instead, the site now leans on clean typography and whitespace. Wide margins, large headings and good fonts (Inter for text, JetBrains Mono for code) do most of the work. The result is minimal, readable and still has some personality.
The site also needs to work well on phones. On small screens, the navbar collapses into a hamburger menu and the footer stops floating.
Blog Architecture
Each post lives in its own folder, and the folder path becomes the post’s URL slug. Folders can be nested, which is how this HCI series is organized by week. Inside a folder there’s one Markdown file per language (e.g., en.md and fr.md). If I drop an image called cover in the same folder, it’s picked up automatically as the post’s cover.
src/content/blog/
└── human-computer-interaction/
├── en.md
├── cover.jpg
└── week-1/
└── personal-blog-setup/
└── en.md Post metadata is written as frontmatter at the top of each file:
---
title: 'Personal Blog Setup'
subtitle: 'A high-level architectural overview'
tags: ['hci']
date: '2026-10-08'
published: false
--- All of this is validated with a Zod schema during the build. If a date is in the wrong format or a tag doesn’t exist, the build fails with a clear error. I’d much rather catch a typo there than on the live site. The reading time isn’t in the frontmatter at all — a small remark plugin calculates it from the content.
The site eagerly loads only the metadata to build the blog index. The actual post content is lazy-loaded when someone opens a post. Here’s how it fits together:
flowchart TD
Files[Markdown & Cover Files] --> Glob[Vite import.meta.glob]
Glob -->|Eager Load| Meta[Frontmatter Metadata]
Glob -.->|Lazy Load| Content[Svelte Content]
Meta --> Zod[Zod Validation]
Zod --> Registry[Tag & Post Registry]
Registry --> UI[Blog Interface]
Content -.->|On Page Visit| UI Posts with published: false still show up when I run the site locally, but they’re filtered out of production builds. This makes it easy to work on drafts without hiding them on a separate branch.
Key Features
Themes
The site started with a pure black background and a bright green accent, like an old computer terminal. Later I added a light theme with a blue accent for a calmer, Nordic look. By default it follows your system preference. A tiny script runs before the page renders, so you don’t get a flash of the wrong theme.
Internationalization (i18n)
The whole site is available in English, French and Urdu. All UI labels live in a typed lookup dictionary. TypeScript complains if a label is missing in any language, so nothing slips through.
Urdu was the tricky one since it’s written right-to-left. Setting the page direction to RTL handles most of the layout, and I override CSS styles only where needed. It also uses its own font (Noto Naskh Arabic) so the script renders properly.
Search & Filtering
The blog page has a command bar with fuzzy search (via Fuse.js), tag filters and sorting. It helps a lot with finding posts as the blog grows. I kept the bar minimal but still useful — filters overflow cleanly to the right when there are too many, and you can jump to the search bar with the / key.
There’s also a pinned posts section at the top for the most important pages.
Series Navigation
Some posts belong to a series, like this HCI course blog. For those, I define the order in a single file and each post gets previous/next links at the bottom. Combined with nested folders, this makes multi-part series easy to follow.
Rich Rendering
A few things make posts nicer to read:
- Code blocks with syntax highlighting via
shikiand a copy button. - Callouts with several variants (note, tip, warning, danger) to make important information stand out.
- Math with LaTeX-style equations (e.g., ) using
remark-mathandrehype-katex. - Diagrams using
mermaid, with custom themes that match the site’s colors.
These components are imported into posts automatically, so I can just write <Callout> in Markdown without any setup.
Optimization
Besides lazy loading, the biggest win comes from the enhanced-img plugin. It optimizes every image at build time and serves modern formats in the right size for the screen. Even regular Markdown images go through it, thanks to another small remark plugin.
Writing a New Post
Starting a new post takes one command. npm run new-post asks for the title, tags and language, then creates the folder and frontmatter for me. From there it’s just writing Markdown and pushing to dev to preview it.
