a Go project

Snoopy, so far.

Snoopy builds this site. I built Snoopy. I’m taking credit for both.

What it does

Snoopy reads Markdown, puts it through a Go template, and writes HTML. Pages can live in folders, links between them work, and images and stylesheets come along with the build. This site is the example that ships with it.

The first build notes cover how it got from one hardcoded page to this version. There’s also a bit more about why I’m making it.

Start with this page

The words you’re reading are in content/index.md. Change a paragraph, then run this from your site directory:

snoopy build

For another page, add a Markdown file to content/ and give it a heading. It’ll show up in the navigation on the next build. The title and description in snoopy.json are yours to change too.

What comes next

I’ll keep writing pages and fussing over the details. There’s usually one more thing I want to try before I close the editor.