Open taringamberini opened 9 years ago
I've just deployed my octopress multilingual site at https://taringamberini.github.io and you can find my octopress site sources on the source branch.
In case somebody wanted to reproduce the issued error feel free to test on my sources:
$ git clone https://github.com/taringamberini/taringamberini.github.io.git
$ cd taringamberini.github.io/
$ git checkout source
$ rake generate (or to get more info: jekyll build --trace)
$ rake preview
I'm available for any questions or tests, Tarin
Setting Octopress
I've installed and configured Octopress as described at:
Installing octopress-multilingual
Then I've installed:
I've run:
and configured _config.yml with Italian default language:
Setting octopress-multilingual
I've followed the Link between translated posts or pages section and I have sucessfully generated a
translation_id
for theabout
page and for a post.It happens that in the
about
page:{% translations page %}
works as expected (OK){% translations post %}
doesn't print nothing (BAD)in the italian post
/_post/20150727-test.markdown
and in the English post:{% translations page %}
doesn't print nothing with English post in /en/_posts/20150727-test.markdown (BAD){% translations page %}
doesn't print nothing with English post in /_posts/en/20150727-test.markdown (BAD){% translations page %}
works as expected (OK) with English post in /_posts/20150727-test-with-a-suffix-to-distinguish-from-italian-post.markdown{% translations post %}
doesn't print nothing with English post in /en/_posts/20150727-test.markdown (BAD){% translations post %}
doesn't print nothing with English post in /_posts/en/20150727-test.markdown (BAD){% translations post %}
doesn't print nothing with English post in /_posts/20150727-test-with-a-suffix-to-distinguish-from-italian-post.markdown (BAD)so it seems:
{{ translations page }}
always works for pages{{ translations page }}
works for posts if and only if translated post are in /_posts/ directory{{ translations post }}
never works for both pages and posts.Thanks, Tarin