-
Notifications
You must be signed in to change notification settings - Fork 112
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
redirect from tries to acces front matter on static files #47
Labels
Comments
I am able to reproduce this as well. |
straight-shoota
added a commit
to nfweb/nfweb.github.io
that referenced
this issue
Oct 10, 2014
So we should check that it's |
I'm having a similar error, also using collections on our project. My steps:
Running $ jekyll serve
Configuration file: /Users/aaron/Projects/styleguides-io/_config.yml
Source: /Users/aaron/Projects/styleguides-io
Destination: /Users/aaron/Projects/styleguides-io/_site
Generating...
jekyll 2.5.2 | Error: undefined method `data' for #<Jekyll::StaticFile:0x007ffc4b3ae0b8> |
Another example with image and pdf files located withing collections directory, which gives the same error if using jekyll-redirect-from |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Investigating on this stackoverflow question I've found that redirect from tries to acces front matter on static files.
Reproduce :
jekyll build
Error : /var/lib/gems/1.9.1/gems/jekyll-redirect-from-0.6.2/lib/jekyll-redirect-from/redirector.rb:38:in
has_alt_urls?': undefined methoddata' for #<Jekyll::StaticFile:0x00000001baa4e0> (NoMethodError)
The Redirector:generate method at
generate_alt_urls(site, site.docs_to_write)
receive both collection files + static files, then method Redirector:has_alt_urls tries to access the unexisting method on statik file.This is not reproduced in gh-page configuration as the
generate_alt_urls(site, site.docs_to_write)
doesn't exist.The text was updated successfully, but these errors were encountered: