Skip to content
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

Problem with post.lang #11

Open
taringamberini opened this issue Apr 16, 2015 · 1 comment
Open

Problem with post.lang #11

taringamberini opened this issue Apr 16, 2015 · 1 comment

Comments

@taringamberini
Copy link

Setting Octopress

I've installed and configured Octopress as described at:

Installing octopress-multilingual

Then I've installed:

group :jekyll_plugins do
  gem 'octopress-multilingual'
end

and I've run:

$ bundle

Setting octopress-multilingual

Finally I've been following the Setup section but, after I've set lang: it as default language, and lang: en for the other pages or posts, when I put in a page:

page {{ page.lang }}

post {{ post.lang }}

or in a post:

page {{ page.lang }}

post {{ post.lang }}

the output for Italian pages and posts is always:

page it

post

and the output for English pages and posts is always:

page en

post

so it seems:

  • {{ page.lang }} always works for both pages and posts.
  • {{ post.lang }} never works for both pages and posts.

Thanks,
Tarin

@taringamberini taringamberini changed the title Problem with {{ post.lang }} Problem with post.lang Apr 16, 2015
@taringamberini
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant