Note: originally raised as a bug report on Github. I also searched the documentation while debugging this and couldn’t find anything.
Steps to reproduce:
Create new empty site.
Create a page in content and corresponding layout, e.g.
/content/test.md
---
title: "Test"
date: 2018-04-01T09:00:44+07:00
type: page
layout: test
---
JUST TESTING!
/layout/page/test.html
{{ .Content }}
Now the page will render correctly. However, add /content/index.md
, which can contain anything and have any layout (that I tested), and suddenly test.md
and any other content in /content
stop being rendered.
If this is intended behaviour and not a bug, then what is the purpose? And where is it documented?