Naming content files: vs vs

A (hopefully) helpful guide to users new to Hugo about what the differences are between, and, and how these relate to what layout files are being used.

I like to start with the question: Where will this page live in my site?

Take a common example: an "About Us" page. I want it to live in

Any of these three options** will generate a page at

  • content/
  • content/about-us/
  • content/about-us/

But which one should you use?

  1. Does this page have child pages? For example, do you want to have pages at

If the answer is YES, then about-us needs to be named content/about-us/ This tells Hugo that about-us is a list page. Docs ref.

As a list page, it will consequently use a list.html template.

If the answer is NO, the next question is:

  1. Do you have resources you want to bundle with your page?

For example, maybe you want to organise your "About Us" page into several sections, one for each team. Each team has a photo, a description, and other attachments, but you don’t want a separate page at all.

If the answer is YES you will want to take advantage of Hugo’s Page Bundles feature. You need to have your content file at content/about-us/, with the Page Resources under it as well:

β”œβ”€β”€ about-us
β”‚   β”œβ”€β”€
β”‚   β”œβ”€β”€ blue-team
β”‚   β”‚   β”œβ”€β”€ attachment.pdf
β”‚   β”‚   β”œβ”€β”€ img.jpg
β”‚   β”‚   └──
β”‚   β”œβ”€β”€ orange-team
β”‚   β”‚   β”œβ”€β”€ attachment.pdf
β”‚   β”‚   β”œβ”€β”€ img.jpg
β”‚   β”‚   └──
β”‚   └── yellow-team
β”‚   └── ...

If the answer is NO, you have the option of simply creating your file at content/ Note that you can still choose to organise it like a Page bundle (content/about-us/ regardless.

Either option (about-us/ or will use a single.html template.

It’s a similar flowchart even for nested pages, for example a page at

See in action

+examples of layout lookup.


demo source:

**excluding aliases, permalinks, custom urls


I had a similar flow chart… I think it still applies :slight_smile: