Creating a minimal working Hugo template

Creating a minimal working Hugo template

I am attempting to create a tutorial that walks through the steps to create a new template. This combines the different examples from the hugo web site. I’m avoiding styling because that is actually the easy part.

[…]

Note: run these same commands every time you need to generate the web site.

[…]

The home page is the page at the root of your static web site. You don’t create it by editing a markdown file. It is created from the template in themes/zafta/layouts/index.html.

[…]

Then generate the web site and verify the results.

[…]

Generate the web site and verify the results. The home page has two sections, posts and pages, and each section has the right set of headings and links in it.

[…]

Generate the web site and verify that this didn’t work. Hugo lets “slug” or “URL” override the permalinks setting in the configuration file. Go ahead and comment out the slug in content/about.md, then generate the web site to get it to be created in the right place.

[…]