Skip to content

Unit 3: Hugo config cleanup + add robots.txt template#5

Open
stradichenko wants to merge 1 commit intomainfrom
unit-03-hugo-config-cleanup-robots-txt
Open

Unit 3: Hugo config cleanup + add robots.txt template#5
stradichenko wants to merge 1 commit intomainfrom
unit-03-hugo-config-cleanup-robots-txt

Conversation

@stradichenko
Copy link
Copy Markdown
Owner

Summary

  • Drop the redundant [mediaTypes] block from config/_default/hugo.toml (Hugo defaults are sufficient). Replace placeholder title = 'HUGO_site' with a real default.
  • Set enableRobotsTXT = true and add layouts/robots.txt with sane defaults (allow all, sitemap pointer).
  • Pick a single canonical exampleSite config; delete the duplicate. Deduplicate identical archetype files. Document or replace placeholders in params.toml and data/seo.yml.
  • Does not touch [languages] / defaultContentLanguage — that's Unit 4.

Test plan

  • hugo --source exampleSite builds successfully.
  • curl http://127.0.0.1:1314/robots.txt returns 200 with valid content.
  • No leftover HUGO_site placeholder in built output.

Part of the PKB-theme modernization batch (15 units).

- Drop redundant [mediaTypes] block from config/_default/hugo.toml.
- Replace placeholder title with a sensible default.
- Set enableRobotsTXT = true.
- Document or replace placeholders in config/_default/params.toml and
  data/seo.yml.
- Pick one canonical exampleSite hugo.toml; delete the duplicate.
- Deduplicate identical archetypes/*.md files.
- Add layouts/robots.txt with sane defaults (allow all, sitemap pointer).
- Does NOT touch [languages] / defaultContentLanguage — that's Unit 4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant