This code corresponds to section 5.1.8 of Hugo in Action.
You can see this live at https://chapter-05-08.hugoinaction.com.
You can see the changes made in this branch at https://github.com/hugoinaction/hugoinaction/compare/chapter-05-07...chapter-05-08
Note that the website configuration baseURL has been updated to match the code checkpoint.