Use this guide when contributing to Code @ LHC's Hugo site to keep content consistent and builds reliable.
content/houses Markdown with TOML front matter; subfolders mirror site navigation and service areas. Prefer Hugo shortcodes (e.g.readme) over raw HTML embeds.layouts/andlayouts/shortcodes/override theme templates; keep page partials grouped by section to avoid collisions.assets/sass/contains the SCSS processed by Hugo Extended; rely on the Hugo Pipes pipeline instead of committing compiled CSS.static/serves images and downloads verbatim; store heavy media externally and link here only when needed.data/exposes YAML/TOML snippets consumed by shortcodes, ideal for project inventories and shared content blocks.themes/kode(active) andthemes/hugo-arcanaare git submodules; sync them before editing and avoid direct changes without upstream pull requests.public/is generated build output; never edit it manually.
git submodule update --init --recursiveensures theme sources are available after cloning or switching branches.hugo server -D --disableFastRenderruns a local preview with drafts enabled and reloads assets on each request (http://localhost:1313).hugo --cleanDestinationDir --gc --minifymirrors the CI build, prunes unused assets, and writes fresh output topublic/; run before pushing.hugo --panicOnWarningcatches missing resources, shortcode errors, or front matter issues during review.npm ci(optional) installs theme tooling when apackage-lock.jsonis introduced or updated.
- Follow
.editorconfig: 4-space indentation by default, 2 spaces for HTML/CSS/JS/YAML, tabs only inMakefile; always keep UTF-8 with LF endings and a trailing newline. - Author content in Markdown with TOML front matter; wrap prose near 100 characters and prefer semantic Markdown (lists, tables) over ad-hoc HTML.
- Name new content files in
kebab-case.md; include standard fields liketitle,author,description,repository,weight, anddraft. Legacy files may differ—match nearby conventions when touching existing content. - Keep SCSS indented with two spaces and organized by component; do not commit generated CSS.
- Place reusable snippets in
layouts/shortcodes/instead of embedding raw HTML directly in content files.
- Toggle
draft = truewhile iterating on new pages, flipping tofalseonly when ready to publish. - Verify new or updated pages via
hugo serverand watch the terminal/browser console for warnings about missing resources or broken links. - Run
hugo --cleanDestinationDir --gc --minifylocally and spot-checkpublic/index.html(or affected pages) for layout regressions. - Use
hugo --panicOnWarningto fail fast on front matter or shortcode issues. - After Sass changes, confirm compiled styles in the browser and resolve any console warnings.
- The repository has no automated unit tests; document manual verification steps in pull requests.
- Follow the existing
type: [scope] messagepattern (e.g.new: [project] Add Range42) using imperative verbs. - Group related changes per commit, separating content edits from theme updates to ease review.
- Pull requests should link related issues, describe the change, list manual checks (commands run), and attach screenshots or GIFs for UI adjustments.
- Confirm
hugo --cleanDestinationDir --minify(and other relevant checks) passes before requesting review.
- Global settings live in
config/_default/; reviewparams.tomlbefore introducing site-wide toggles. - The default
theme_kodebranch deploys via.github/workflows/hugo.yml; keep the pinned Hugo Extended (0.108.0) and Dart Sass versions updated together when bumping.