title: Rebuilding 4ndra.com on Cloudflare Pages
slug: rebuilding-4ndra-com
date: 2026-11-19
description: Why the portfolio moved from a Worker to Pages, and how the whole site runs on a handful of plain files.
tags: cloudflare, meta

The old 4ndra.com was a Worker with a build step. Every change meant running a script, waiting, and deploying again. I wanted a site where changing a sentence is just editing a text file.

## What changed

- The site is one HTML file. Styles and scripts live inside it.
- Everything you read is in three markdown files: `about.md`, `projects.md` and `blog.md`.
- A small `_worker.js` builds `sitemap.xml` and `robots.txt` on request, so the sitemap is never out of date.
- Each blog post gets its own address, title and description for search engines.

## Why Pages

Pages serves the static files and runs the worker in front of them. There is no build command and no output folder to configure. Upload the folder and it is live.

> Less machinery means less that can break at 3am.

## What I would still change

I am still learning, and parts of this will get rewritten. When they do, I will write it down here.

=====

title: How to add a post to this blog
slug: how-to-add-a-post
date: 2026-11-19
description: Posts live in one text file. Here is the exact format and what happens after you save it.
tags: guide, meta

Every post on this site lives in `blog.md`. There is no admin panel and no database.

## The format

A post starts with a few header lines, then a blank line, then the body.

```
title: My new post
slug: my-new-post
date: 2026-12-01
description: One sentence for search results.
tags: tag one, tag two

The body starts here.
```

Put a line made of five equals signs between two posts. That line is what splits the file into posts.

## What you can write

- Headings with `#`, `##` and `###`
- **Bold**, *italic* and `inline code`
- [Links](https://4ndra.com) and images with a normal address
- Lists, quotes and fenced code blocks
- ==Highlights== using double equals signs

## After you save

Deploy the folder again. The blog list, the post page, the search engine description and `sitemap.xml` all update from that one file. The newest date is shown first.
