main
Build and Deploy Hugo Site to Cloudron / build-and-deploy (push) Successful in 32s
AskKennyB
This repository contains the source for the Ask KennyB static site. The site source lives under askkennyb/ and is built with Hugo.
Deployment Model
Pushes to main trigger the Gitea workflow in .gitea/workflows/deploy.yml.
That workflow:
- builds the site with
hugo --minify -s askkennyb - deploys the generated output in
askkennyb/public/to Cloudron Surfer
Because CI builds the site on each push, askkennyb/public/ is local build output and is intentionally ignored in Git.
Local Development Dependencies
These tools should be available on any development machine used for this project:
git: source controlssh: access to the Gitea remote atssh://git@code.askkb.com:29418/kbondelie/AskKennyB.githugo: required for local builds and previewing the siteripgrep(rg): recommended for fast searching in content and confignodeandnpm: required for the Cloudron Surfer CLIcloudron-surfer(surfer): optional for local deploy testing; CI also uses it
Version Notes
- Use a recent Hugo version. This repo's vendored
PaperModtheme declares a minimum Hugo version of0.146.0. nodeshould be reasonably current. The Gitea workflow currently uses Node 18.
Environment Verification
After setting up a new machine, these commands should work:
git --version
ssh -V
hugo version
rg --version
node --version
npm --version
surfer --version
You can verify the site builds locally with:
hugo --minify -s askkennyb
Notes
- The
PaperModtheme is currently vendored inaskkennyb/themes/PaperMod. .codexis intentionally left in the repo root as local project context.
Description
The Hugo files for the Ask KennyB blog and related content.
https://www.askkennyb.com
Languages
HTML
89.1%
CSS
8.9%
JavaScript
2%