octopress / multilingual

Write elegant multi-language Jekyll sites
MIT License
69 stars 15 forks source link

Problem with post.lang #11

Open taringamberini opened 9 years ago

taringamberini commented 9 years ago

Setting Octopress

I've installed and configured Octopress as described at:

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:

Thanks, Tarin

taringamberini commented 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