hugo server -D
will show a localhost live previewhugo new post/my-first-post.md
(note that usually this would beposts/my-first-post
but the even theme I'm using uses post)- https://gohugo.io/getting-started/quick-start/
- https://github.com/olOwOlo/hugo-theme-even (guessing this will break one day because it doesn't seem to be maintained)
bash
# if i remember before cloning
git clone --recurse-submodules -j8 git@github.com:m-richards/m-richards.github.io.git blog
cd bar
# For already cloned repos,
cd themes/even
git submodule update --init --recursive
bash
pipx install mdformat
pipx inject mdformat mdformat-frontmatter
mdformat content --wrap 120
Note the frontmatter formatter only detects yaml, so unfortunately, that keeps me using yaml and not toml for the frontmatter