Overview

This page documents installing Hugo, creating a project, and organizing posts as leaf bundles so images resolve correctly.

Prerequisites

None — this is the first step.


Installing Hugo and Creating a Project

Hugo is a static site generator: it takes a folder of content/templates and builds a hostable website. Following Hugo’s own quickstart guide, the initial project was created with:

hugo new project quickstart
cd quickstart
git init
git submodule add https://github.com/gohugo-ananke/ananke themes/ananke
echo "theme = 'ananke'" >> hugo.toml
hugo server

This created a new quickstart project, initialized a git repo inside it, added the ananke theme as a submodule, and started a local dev server at http://localhost:1313.

A freshly generated project is blank until content is added — Hugo (or the active theme) automatically surfaces any post placed under content/ on the home page.


Organizing Posts as Leaf Bundles

Obsidian’s image embeds (![[Some Image.png]]) are Obsidian-specific — they resolve regardless of where the image sits in the vault, because Obsidian indexes the whole vault. Hugo does not do this; telling it where an image lives relative to the page that references it was needed.

The fix was Hugo’s page bundles: each post’s markdown file and its images lived together in the same folder. Since blog posts don’t have nested child posts, each one was treated as a leaf bundle rather than a branch bundle.

See blog publishing workflow diagram for the overall plan: write in Obsidian, convert to generic markdown, copy the post + images into Hugo’s content folder, build with Hugo, then push/reload. This plan was drawn before any of the tooling existed, so it isn’t reproducible after the fact.


Next: Pt 2, Fixing-content-rendering.