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

Incompatible with jekyll 3 #29

Open
Gondlar opened this issue Apr 2, 2016 · 4 comments
Open

Incompatible with jekyll 3 #29

Gondlar opened this issue Apr 2, 2016 · 4 comments

Comments

@Gondlar
Copy link

Gondlar commented Apr 2, 2016

Trying to build a site using jekyll 3.1.2 fails with the following Error:

jekyll 3.1.2 | Error: undefined method template' for class Jekyll::Post'

@equinusocio
Copy link

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.

@drallgood
Copy link

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:

  • Have different collections for each language
  • Keep the translations and crossposts
  • kick out everything that is related to separating posts for different languages (e.g. posts_by_language)

@bradonomics
Copy link

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.

@drallgood
Copy link

@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

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

4 participants