The book: ‘Build Websites with Hugo. Fast Web Development with Markdown’ by Brian P. Hogan
Start date: Thursday, December 07, 2023
https://pragprog.com/titles/bhhugo/build-websites-with-hugo/
What You Need Resources
- Errata, typos, suggestions
- Source Code (zip file)
Errata
wrong file path (p. 18)
In the last paragraph on p. 18 it refers to the file themes/basic/layouts/_default/par- tials/footer.html, however, _default should be omitted.
Source code for search is incomplete: search/portfolio/static has no js directory, and based on the chapter contents, it should.
A quick scan of the chapter shows that the text references code/search/portfolio/themes/basic/static/js/search.js as shown in the following screenshot:
You will find that code in the search directory within themes/basic/static.
Error in command to create syntax.css (59)
The “Joe asks: Does Hugo Support Syntax Highlighting for Code” has a formatting mistake:
$ hugo gen chromastyles --style=github > syntax.css
should be
$ hugo gen chromastyles --style=github > syntax.css
(
>
→>
)
It also does not explicitly say where the syntax.css file should go - it should go under themes/basic/static/css.