Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.
This repository was archived by the owner on Sep 18, 2019. It is now read-only.

Conflict between Gems? #115

@vallieres

Description

@vallieres

I'm baffled by this.
My homepage uses the Paginator object and I also have a category paginator plugin. Both work fine and paginate my content. However, when I add the jekyll-lunr-js-search my homepage paginator stops working and displays no post from paginator.posts.

If I change the order of the Gems in my Gemfile and _config.yml, however, it works...

Before (breaking):

Gemfile

group :jekyll_plugins do
   gem "jekyll-feed"
   gem 'jekyll-gist'
   gem 'jekyll-archives'
   gem 'jekyll-paginate'
   gem 'jekyll-paginate-categories'
   gem 'jekyll-lunr-js-search'
end

_config.yml

gems:
  - kramdown
  - jekyll-watch
  - jekyll-gist
  - jekyll-paginate
  - jekyll-lunr-js-search

After (working):

Gemfile

group :jekyll_plugins do
   gem 'jekyll-lunr-js-search'
   gem "jekyll-feed"
   gem 'jekyll-gist'
   gem 'jekyll-archives'
   gem 'jekyll-paginate'
   gem 'jekyll-paginate-categories'
end

_config.yml

gems:
  - kramdown
  - jekyll-lunr-js-search
  - jekyll-watch
  - jekyll-gist
  - jekyll-paginate

Could there be a conflict between the Paginator object (or the index.html at the root of the site) and your plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions