Templates in Hugo


When we create new hugo site, start a local server and open the browser with localhost url it will show blank page.

This is because hugo has two main templates.

  • Single

    2. Single.html template Single.html template is actually a detailed single page. For example when click on blog post title and then the detailed page appears that is single page template. Contact page and about us page are examples of single.

  • List

    1. List.html template List.html template represents and aggregate page. For example a page which lists all the blog posts. Hugo considers homepage as list.html template.