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

TypeError Thrown When Building #2

Open
swashcap opened this issue Apr 26, 2014 · 4 comments
Open

TypeError Thrown When Building #2

swashcap opened this issue Apr 26, 2014 · 4 comments

Comments

@swashcap
Copy link

I am using generator-jekyllrb to power Jekyll during development. The Monthly Archive plugin causes Ruby to throw an error when building.

Running:

bundle exec jekyll build --source app --destination .jekyll --config _config.yml --trace

Causes:

/Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/page.rb:127:in `join': no implicit conversion of nil into String (TypeError)
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/page.rb:127:in `relative_path'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/page.rb:122:in `path'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/generators/pagination.rb:118:in `pagination_candidate?'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/generators/pagination.rb:77:in `block in template_page'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/generators/pagination.rb:76:in `select'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/generators/pagination.rb:76:in `template_page'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/generators/pagination.rb:17:in `generate'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/site.rb:227:in `block in generate'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/site.rb:226:in `each'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/site.rb:226:in `generate'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/site.rb:38:in `process'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/command.rb:18:in `process_site'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/commands/build.rb:23:in `build'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/lib/jekyll/commands/build.rb:7:in `process'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.3/bin/jekyll:77:in `block (2 levels) in <top (required)>'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/commander-4.1.6/lib/commander/command.rb:180:in `call'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/commander-4.1.6/lib/commander/command.rb:180:in `call'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/commander-4.1.6/lib/commander/command.rb:155:in `run'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/commander-4.1.6/lib/commander/runner.rb:422:in `run_active_command'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/commander-4.1.6/lib/commander/runner.rb:82:in `run!'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/commander-4.1.6/lib/commander/delegates.rb:8:in `run!'
  from /Users/XXX/.rvm/gems/ruby-2.1.0/gems/commander-4.1.6/lib/commander/import.rb:10:in `block in <top (required)>'
@shigeya
Copy link
Owner

shigeya commented Apr 27, 2014

Hi. currently, this monthly-archive does not support pagination. If you want use pagination, please give me provide specific configuration to help debug. Or if you don't use pagination, turn of pagination and you should be ok.

@swashcap
Copy link
Author

Thanks for getting back!

monthly-archive does not support pagination

Ah, I see. I’m working on a blog that could end up with several dozen posts. Doesn’t make sense to display all posts at once, so I’m using Jekyll’s default pagination with paginate: 12 in the config.

What other configuration info would you need?

@shigeya
Copy link
Owner

shigeya commented Apr 27, 2014

At this moment, that's sufficient. I'll try to reproduce it here. I heard similar request while ago and the person haven't give me enough info to reproduce it. Thanks.

@shigeya
Copy link
Owner

shigeya commented May 11, 2014

@swashcap Hi. Sorry to respond late. Have you tested with Jekyll 2.0? If so, do you have the index page template?

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

2 participants