I am getting a message did not find expected node content
from an archetype when I try to hugo new it.
Does anyone have any ideas what it wants from me?
The archetype reads:
—
title: aaa
date: {{- .Date -}}
draft: true
—
**Insert Lead paragraph here.**
zwbetz
2
Syntax looks okay. Not sure if it autocorrected when you typed your snippet, but is the front matter surrounded properly, with 3 hyphens?
---
key: value
---
@zwbetz, sorry, wrong formatting in the forum. It is three hyphens.
---
title: aaa
date: {{- .Date -}}
draft: true
---
**Insert Lead paragraph here.**
Edit: solved it, it was the date format. It should be {{ .Date }}
of course.
How does that even work? Isn’t that circular?
zwbetz
5
It’s included in the default archetype