Just my website stuff, now with source control!
Built with Hugo!
- Add a new blog post:
hugo new blog/POST-TITLE.md - Add a new project page:
hugo new projects/PROJECT.md - Add a new talk:
hugo new talks/TALK-TITLE.md - Run the server locally:
hugo server - Generate the latest HTML files from the Markdown files:
hugo --minify
The /blyg/ surfaces come from hugo-blyg, a Hugo Module pinned in go.mod.
- Stamp a new or edited item:
python3 "$(go list -m -f '{{.Dir}}' github.com/chrisbodhi/hugo-blyg)/scripts/blyg_stamp.py"(rungo mod download github.com/chrisbodhi/hugo-blygonce first) - Upgrade:
hugo mod get github.com/chrisbodhi/hugo-blyg@<tag>, and set the same tag on theuses:line in.github/workflows/blyg-issue.yml - Work on the module against this site: add
replace github.com/chrisbodhi/hugo-blyg => ../hugo-blygtogo.mod(a local checkout), and drop it before committing
- Run
docker run --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo:0.151.0-ext-alpine serverfor serving built files - Run
docker run --rm -it -v $(pwd):/src -v $(pwd)/output:/target klakegg/hugo:0.151.0-ext-alpineto build
- Push changes to
masterand GitHub Actions will automatically build and deploy - Configuration steps are in
.github/workflows/ - File an issue labeled
blyg, or titledblyg: …(e.g. from GitHub Mobile, which can't add labels), (as the repo owner, or a login listed underauthorsin.github/workflows/blyg-issue.yml) to publish a blyg fragment: the body becomes the item, the title only names the file and PR. The Action (chrisbodhi/hugo-blyg/publish-from-issue) opens a PR; merging it deploys and closes the issue