Open Gondlar opened 8 years ago
On jekyll 3.1.2
i get
Error: undefined method `lang' for #Jekyll::Drops::UrlDrop:0x007fb2ea984460
This is my Gemifile
source 'https://rubygems.org'
gem 'jekyll'
gem 'kramdown'
gem 'octopress-multilingual'
My _config.yml
contains:
permalink: /:lang/:title/
The gems are installed without problems but seems that the plugin isn't installed.
I think we need to rethink the whole multilingual thing. With Jekyll 3 and the collections, things are much easier now.
After digging deeper into the code and this topic, I'm not sure yet what we even need from the existing plugin anymore.
So far my thinking goes in this direction:
I'm trying to create a multilingual site and getting the same error as @Gondlar. I tried using collections first as @drallgood has suggested, and while it did work, I was only able to paginate the main language blog. The collections would list all posts in a single page. The Octopress Pagination gem readme file discusses multilingual pagination, but I can't get it to work per the aformentioned build error.
I'd be perfectly happy to continue using collections as that is working, if anyone knows how to get pagination to work with collections.
@bradonomics I had to modify several plugins to get this working properly. Pull requests are being created right now or have already been created.
You can follow my progress on the multilingual plugin here, if you like: https://github.com/drallgood/multilingual/tree/jekyll3
Trying to build a site using jekyll 3.1.2 fails with the following Error: