-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page_articles.each doesn't pick the I18n language from the file name anymore #344
Comments
I dont believe much regarding this was updated in the latest version - please continue to use the older one in the meantime and I will investigate. |
Hi @iwarner not sure what to say. By the time I forced the 4.0.1 version everything gone back to work as normal. |
You can see what changed in the commits: My understanding is that page articles always pulled the default blog, and would not pull from two blogs. |
Hi @iwarner On 4.0.2 this suddenly got broken, but skimming the code I don't see anything strange that could have impacted this behaviour. |
ℹ️ This issue is stale because it has been open for more than 90 days with no activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
Expected behaviour
The same that was happening with v. 4.0.1 were everything was working fine.
Two separate blog instances in the config,rb were pulling out the list of content with the
page_articles.each do
Actual behaviour
A
page_articles.each do
returns content only for the first of the two blogs only.Steps to reproduce the problem
Config.rb file as
activate :i18n, :mount_at_root => false, :templates_dir => "content", :locales => [:en, :it]
activate :blog do |blogen|
blogen.name = "blogit";
blogen.prefix = 'en/blog'
...
end
activate :blog do |blogit|
blogit.name = "blogit";
blogit.prefix = 'it/blog'
...
end
Create two files, one with .en and one with the .it extension within
Use the page_articles method to pull out the list of content.
I will try to put together a repository ASAP.
Additional information
The text was updated successfully, but these errors were encountered: