mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Joe Mooring
02.51.2021 24dcf32ffd2de43b20c27cc00084b9a49453cb52
refs
author Joe Mooring <joe@mooring.com>
Thursday, December 2, 2021 20:51 +0100
committer GitHub <noreply@github.com>
Thursday, December 2, 2021 20:51 +0100
commit24dcf32ffd2de43b20c27cc00084b9a49453cb52
tree eee721c415ee72a6b1c16044e0ec9c1e86e79b94 tree | zip | gz
parent 3710f7e92a02438ae8508554c0d7a9ea763cc6ba view | diff
Base content title on ContentBaseName (#440)

With Hugo v0.88.1 and earlier, ContentBaseName and TranslationBaseName
both returned "index" when creating a leaf bundle with hugo new. This is
a known bug, addressed with https://github.com/gohugoio/hugo/pull/9045.

With this PR:

hugo new post/my-first-post/index.md

will produce:

title: "My First Post"

instead of:

title: "Index"
1 files modified
2 ■■■ changed files
archetypes/default.md 2 ●●● diff | view | raw | blame | history