Right now I have posts in English and Portuguese. English is the default language in config.toml.
I upgraded to 56.1 and the content in PT is being rendered in both languages. EN posts are just rendered in english.
I’m separating the content using index.md and index.pt.md and in my code I am listing posts like this:
{{ range (.Paginate (where (where .Data.Pages "Section" "!=" "instagram") ".Params.options.unlisted" false) 9).Pages }}
{{ .Render "summary" }}
{{ end }}
Should this be an issue on github, or am I missing some new setting?
I would say that’s a bug. There was nothing changed in i18n. Are you sure it’s a recent bug?
I compared the result with the current website in production, and the posts only render in one Language each. So yes, it’s recent.
bep
July 29, 2019, 4:45pm
4
I’m a little bit suprised as we have gazillion tests for this and I did a diff of the Kubernetes site which has … plenty of languages.
I will check.
bep
July 29, 2019, 5:35pm
5
So, I checked and we do have many green tests for this. @brunoamaral could you somehow share your site source with me?
@bep It’s a pretty large source code, I’ve slimmed it down a bit:
git clone --depth 1 git@github.com:brunoamaral/DI-Public.git;
It’s using git lfs, so if it doesn’t build properly, you need to run git lfs pull
.
The post titled “viaverde” should only show up in Portuguese, for example.
bep
July 31, 2019, 9:54am
10
Filtering content: 15% (2485/16213), 1.45 GiB | 5.48 MiB/s
I’m sorry, but I don’t think I even have enough disk space on my laptop to clone your project. Let me know if you have a simpler reproduceable. Or else, I will eventually figure it out.
I’ve deleted content older than one year and still see the issue happening. Try cloning it again, it shouldn’t go over 1Gb now.
bep
July 31, 2019, 10:08am
12
Yea, that looks better, thanks.
1 Like