/blog

My blog

Primary LanguageHTMLThe UnlicenseUnlicense

Blog

Web log --> weblog --> blog

Setup

cp .env.sample .env # and then populate
npm i # for publishing to cloudflare pages
brew install hugo # for building site

Building

hugo

or for development

hugo server

Publishing

npm run login # only required once in a while
npm run publish

This will

  1. "build" (i.e. copy public files into /build directory)
  2. publish to Cloudflare pages

New post

hugo new drafts/my-new-post.md

Interestingly, the .md is critical in this command. Without it, Hugo won't know which archetype to use.