I followed the Quick Start successfully. Then I created content/en/ and content/fr/ to make the site bilingual. I can access the index.md files in each of these directories via localhost:1313/en/ and localhost:1313/fr/.
But I can’t access any other pages, e.g. content/en/test.md is not seen at localhost:1313/en/test. Based on the instructions for multilingual sites, I understand it should work, though.
I got the answer from Directory structure | Hugo. Files are not processed unless they are placed inside directories whose name carry some semantic meaning. Lesson learned.
First: I am very new so take everything with a lot of salt But I am stuck with something multi-language right now, so I may know your problem.
First of all, there are 2 options for multi-language.
First is a directory for every language. That’s what you wrote in your first post.
However, in your third post you seem to be using the second option: having the same file with the language added in the same directory.
If you are using the second option, you need
defaultContentLanguageInSubdir= false
in your config. (default, for subdirectories, is true)
I found the issue. Hugo changes its behaviour dramatically depending on whether a directory contains an index.md file or not. The serving of other md files goes from works fine to completely broken.