Skip to content

Jekyll 3 changed site.posts from an Array to a Collection which causes deprecation warning in Ink #64

@awatts

Description

@awatts

Starting a new blog and testing generating after just init-ing things (i.e only have the automatic first post and default index.html, etc.) trying to use Jekyll 3.0.1 and Octopress 3.0.11.

Here are the gems in my _config.yml:

gems:
  - octopress-codefence
  - octopress-code-highlighter
  - octopress-minify-html
  - octopress-social
  - octopress-solarized

Running jekyll b yields:

Deprecation: Collection#empty? should be called on the #docs array directly.
                    Called by /usr/local/lib/ruby/gems/2.3.0/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:163:in `posts?'.
Deprecation: Collection#select should be called on the #docs array directly.
                    Called by /usr/local/lib/ruby/gems/2.3.0/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:171:in `linkposts?'.
Liquid Exception: no implicit conversion of nil into String in _posts/2015-12-27-welcome-to-jekyll.markdown

As far as I can tell, the deprecation warnings are because of jekyll/jekyll#4055
The final line seems to be the same octopress/hooks issue as octopress/linkblog#6 (My stack trace comes down to the same ``expand_path': no implicit conversion of nil into String (TypeError)`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions