Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Simplify Theme

The default theme we created with $ hugo new theme ... has a lot of interesting features that you could use as the base of a theme, but we are going to simplify things in order to focus on creating basic functionality.

The first thing we want to remove is the content included with the theme. Our content will be located under the opinionated-blog/content/ directory. Go ahead and delete all of the content in the themes/opinionated-theme/content/ directory.

$ rm -rf themes/opinionated-theme/content/

Let’s also delete the generated templates, since we are going to create them from scratch. They are located in the layouts directory. One way is using the find command.

find themes/opinionated-theme/layouts/ -name *.html -exec rm {} +

Next up, we’ll create the outer shell, or chrome of our simple site.