My Content tree looks like this:
content/
├── about
│ ├── index.md
│ └── pic.jpg
└── posts
├── firstpost
│ └── index.md
└── secondpost
└── index.md
I am trying to set up an archetype for new posts (named archetypes/post-bundle/index.md
)
---
title: "{{ .ContentBaseName }}"
date: {{ .Date }}
draft: true
tags: []
categories: []
type: "post"
toc: true
body_classes: "blog"
---
The problem is, this just always sets the title to “Index” which is not what I want. According to these docs, it seems like it should set the title to the name of the containing folder as it is a leaf bundle (I think, still new to hugo, but I tried to read all the docs before diving in…). I call the archetype as such:
hugo new --kind post-bundle posts/
Does anyone know why this wouldn’t be working?