Description
I'm in the last leg of some improvements in Hugo which requires some simplification in the content path logic . This is also looking a little to the future where content will not just be files, and the task of finding the cannonical path of a piece of content should be a simple task.
Given this content:
content
├── foo.en.md
├── foo.jp.md
└── foo.no.md
Currently, the value of .Page.File.TranslationBaseName
, depends on the language configuration. If only en
is configured, then TranslationBaseName
for foo.jp.md
will be foo.jp
.
In the new setup, every part of the base filename after the first "." separator will be considered identifiers:
foo.no.md => foo + IDENTIFIER_LANGUAGE + IDENTIFIER_EXTENSION
Note that the Page
backed by a foo.unknownlanguage.md
will still be assigned the defaultContentLanguage
.
I'm sure there will be some subtle site breakage in the above, but I'm also sure that we need to do this.
Shout if you disagree.