Despite quite a lot of time perusing the docs, as well as various googling, I seem to be misunderstanding something fundamental about the way _index.md
's get rendered.
In order to try to understand Hugo better, I’ve started a site from scratch with a super minimal (read “not bothering with HTML just yet”) layout.
Setup
~/testsite/content $ tree
.
├── _index.md
└── about
└── _index.md
~/testsite/themes/gohugo-theme-clatch $ tree
.
├── LICENSE
├── archetypes
│ └── default.md
├── layouts
│ ├── 404.html
│ ├── _default
│ │ ├── baseof.html
│ │ ├── list.html
│ │ └── single.html
│ ├── index.html
│ └── partials
│ ├── footer.html
│ ├── head.html
│ └── header.html
├── static
└── theme.toml
~/testsite $ cat config.toml
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Zugo Site"
theme = "gohugo-theme-clatch"
As I said, the layout’s super basic for now:
~/testsite/themes/gohugo-theme-clatch $ cat index.html
{{ define "main" }}
{{ .Page.Title }}
{{ .Content }}
{{ end }}
Content-wise, I’ve got this in the root _index.md
…
~/testsite/content $ cat _index.md
---
title: Zome page test
date: 2019-03-01
---
# First content
[About](/about)
…and this in the about
index:
~/testsite/content $ cat about/_index.md
---
title: "About Index"
date: 2019-03-03
---
# About Me
Problem
The home page renders just fine:

http://localhost:1313/
But the about
index is blank:

http://localhost:1313/about/
Question
What am I doing wrong?
In my tests, I can get the about
page to render if I duplicate the root index.html
and rename it to: themes/gohugo-theme-clatch/layouts/about/list.html
. So, more specifically:
How do I create a default layout for index.html
pages?