content/holds the Hugo pages and section indexes (_index.md).layouts/contains site-specific layout overrides for the theme.themes/includes thehugo-theme-relearntheme source.static/is for site assets copied verbatim (images, manifests, ads.txt).media/stores downloadable book formats (PDF/ePub/Mobi/ODT).public/is the generated site output; do not edit by hand.
hugo server -Druns the local site with drafts enabled.hugobuilds the production site intopublic/.hugo --minifybuilds with minification for release previews.
- Content files are Markdown with YAML front matter (
title,date,weight). - Prefer sentence case headings and short, descriptive filenames (lowercase, no spaces).
- Use Hugo shortcodes consistently (e.g.,
{{% notice info "Title" %}}).
- No automated test suite is present. Validate changes by running
hugo server -Dand checking the rendered pages.
- Recent commits use short, sentence-case summaries (e.g., “Fix minor typo in httpmethods.md”).
- Keep commits focused to one content or layout change when possible.
- PRs should describe the affected pages, mention any navigation or config changes, and include screenshots or page URLs if the layout changes.
- Site settings live in
config.toml; update theme or menu entries there. - When adding new sections, include a
_index.mdwithweightto keep navigation order predictable.