recurser/jekyll-plugins — Issue #16: Pagination and generate_sitemap.rb
Author: bhardin
Created: 2012-02-06 18:21:10+00:00
State: open

When adding pagination to jekyll, generate_sitemap breaks. The following error is returned.

```
$ jekyll --server
/Users/bhardin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': iconv will be deprecated in the future, use String#encode instead.
Configuration from /Users/bhardin/Documents/projects/blog/_config.yml
Building site: /Users/bhardin/Documents/projects/blog -> /Users/bhardin/Documents/projects/blog/_site
/Users/bhardin/Documents/projects/blog/_plugins/generate_sitemap.rb:85:in `mtime': No such file or directory - /Users/bhardin/Documents/projects/blog/page2/index.html (Errno::ENOENT)
from /Users/bhardin/Documents/projects/blog/_plugins/generate_sitemap.rb:85:in `block in generate_content'
from /Users/bhardin/Documents/projects/blog/_plugins/generate_sitemap.rb:83:in `each'
from /Users/bhardin/Documents/projects/blog/_plugins/generate_sitemap.rb:83:in `generate_content'
from /Users/bhardin/Documents/projects/blog/_plugins/generate_sitemap.rb:60:in `block in generate'
from /Users/bhardin/Documents/projects/blog/_plugins/generate_sitemap.rb:58:in `open'
from /Users/bhardin/Documents/projects/blog/_plugins/generate_sitemap.rb:58:in `generate'
from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:184:in `block in generate'
from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:183:in `each'
from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:183:in `generate'
from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:39:in `process'
from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/bin/jekyll:250:in `'
from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/bin/jekyll:19:in `load'
from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/bin/jekyll:19:in `

'
```

Issue in Jekyll: https://github.com/mojombo/jekyll/issues/501