index

The post is a Markdown file

· 2 min read

I wanted to move my blog off GitHub Pages and keep the part I liked: write a Markdown file, push it, and see it online. The server has more pieces now. The writing should not.

Posts live in posts/. Eleventy turns them into HTML when the site builds. For a regular article, I don't need to touch a template or add a component.

A small publishing loop

The path from a change on my laptop to a page on the site is short:

  1. Write the post in Markdown.
  2. Push the change to GitHub.
  3. GitHub Actions builds a container image.
  4. The VPS pulls that image and updates the blog container.

Caddy keeps running in its own container. A new blog version does not need to rebuild it.

The usual bits

Most posts will probably be paragraphs, with a few extras when they help:

  • A short list is easier to scan than a sentence with four commas.
  • Images can have a caption, and clicking one opens a larger view.
  • Code blocks keep commands and examples readable.
Picanha with rice and salad on a plate
Late-night picanha I cooked myself

And here is the command I use to build the site on my machine:

npm run build

The generated pages go into _site/. That folder is what the web server sends to visitors.

A quick reference

Markdown On the page
## Heading Adds a section to the outline
- item Makes a bulleted list
`code` Marks a command or term inline

If publishing a paragraph takes a checklist, I have made the blog too complicated.

I keep the source plain so I can write in any editor. I still look up the exact Eleventy syntax now and then.

That is the whole idea: keep writing simple, and let the build do the repetitive part.[1]


  1. The build produces static HTML files. The server does not run Eleventy for each request. ↩︎