Dear @jmooring thanks for making a proper thread, and sorry not being crystal clear.
My content structure
- Content
- english
- news
- post-1 [EN only]
- post-2
- french
- news
- post-2
- post-3 [FR only]
- post-4 [FR only]
So my post2 is translated in FR and in EN
Basic behaviour
Basically it works. EN site shows EN posts and FR shows FR post. Classic.
Web site in EN, the news list:
- post1 (en)
- post2 (en)
Web site in FR, the news list:
- post2 (fr)
- post3 (fr)
- post4 (fr)
New v0.96.0 behaviour
- I upgraded to v0.96.0 to be able to have FR posts on the EN site.
- It works really well with the setup you gave on the previous post
Web site in EN, the news list:
- post1 (en)
- post2 (fr)
- post3 (fr)
- post4 (fr)
The “problem” : My post2 is translated in FR and in EN. But with this setup, I can’t get the post2 showing up in english. Only the Post2 in french is showing up.
Looking at the config, this seems normal because we told to override the EN with FR. Works “as should technically be”.
My config.toml setup for this:
[module]
[module.hugoVersion]
min = '0.96.0'
# EN News content
[[module.mounts]]
source = 'content/english/news'
target = 'content/news'
lang = 'en'
# FR News content
[[module.mounts]]
source = 'content/french/news'
target = 'content/news'
lang = 'fr'
#------------------------------------------------------------------------------
# Fill in the missing translations
#------------------------------------------------------------------------------
# This fills in the gaps in missing EN content with FR content
[[module.mounts]]
source = 'content/french/news'
target = 'content/news'
lang = 'en'
My sophisticated expected behaviour
Because my post2 is already translated in EN, I would like to have it showing up in EN on the EN site version.
Web site in EN, the news list I’d like :
- post1 (en)
- post2 (en) => because we are in the EN site, even if post2 (fr) exists.
- post3 (fr)
- post4 (fr)
I tried a lot of conf but failed to achieve this.