This code corresponds to section 4.1 of Hugo in Action.
You can see this live at https://ch04-1.hugoinaction.com.
You can see the changes made in this branch at https://github.com/hugoinaction/hugoinaction/compare/ch03-6...ch04-1
- The
.gitignorefile for this repository containsresourcesanddocsfolder.- Ideally the
resourcesfolder caches the assets preprocessed by Hugo and they belong with the code base. The folder may get large and blot the repository size which is not ideal for sample code.
- Ideally the
static / robots.txtis present to disallow bots from tracking the branch. Needless links to subdomains with repeated code harm the search engine rankings of the website.