Post

Getting Started with Hugo

Published Apr 6, 2026

Hugo uses Markdown for content. Here’s a quick cheat sheet.

Front Matter

Every post starts with YAML front matter between --- fences:

---
title: "My Post Title"
date: 2026-04-06
draft: false
tags: ["example"]
---

Set draft: true to hide a post from the live site.

Content Tips

  • Use ## for section headings (Hugo generates a table of contents from these)
  • Drop images in static/images/ and reference them as /images/photo.jpg
  • Code blocks get syntax highlighting automatically
  • Hugo rebuilds the entire site in milliseconds, so iteration is instant

Deploying Changes

After writing a new post, just re-run the deploy tag:

ansible-playbook -i inventory.ini playbook.yml --tags deploy

Hugo rebuilds, Caddy picks up the changes, done.