The Index
Back to blog

How The Index is built

A short guide to the portfolio’s static pages and Markdown blog.

The portfolio home page is a standalone HTML file with its typography, styles, and project imagery embedded. The blog uses static HTML too, so you can open the site directly from this folder.

From Markdown to a post

Each post starts as a Markdown file in posts/. Its filename becomes the page address. The metadata at the top supplies the title, date, description, and optional category for the blog index.

npm ci
npm run build:blog

The build updates blog.html and writes one page per post to blog/. Open blog.html to preview the result before committing both the Markdown and the generated pages.

Writing documentation

Use headings to divide a post into sections, fenced code blocks for commands, and Markdown links for references. Code blocks scroll horizontally on narrow screens so that long commands stay on one line.