We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the latest Jekyll version (4) a collection containing a static file causes the build to break when a permalink is set on the collection.
jekyll
github-pages
The static file should be copied into _site and build should succeed.
(Alternatively if there really is a problem a meaningful error message should be given.)
Jekyll build fails with stack trace. Example repository here: https://github.com/joeshannon/jekyll-collection-static-issue
https://github.com/joeshannon/jekyll-collection-static-issue
The text was updated successfully, but these errors were encountered:
Thank you for reporting this bug. Though this issue only occurs if the static file doesn't have an extension.
Sorry, something went wrong.
Until a proper patch is shipped, you may use the following workaround by pasting the code in a file at the path <source_dir>/_plugins/monkey_patch.rb
<source_dir>/_plugins/monkey_patch.rb
# frozen_string_literal: true module Jekyll class StaticFile def placeholders { :collection => @collection.label, :path => cleaned_relative_path, :output_ext => "", :name => basename, :title => "", } end end end
No problem, thanks for providing a workaround.
Successfully merging a pull request may close this issue.
With the latest Jekyll version (4) a collection containing a static file causes the build to break when a permalink is set on the collection.
My Environment
jekyll
github-pages
Expected Behaviour
The static file should be copied into _site and build should succeed.
(Alternatively if there really is a problem a meaningful error message should be given.)
Current Behavior
Jekyll build fails with stack trace. Example repository here:
https://github.com/joeshannon/jekyll-collection-static-issue
Code Sample
https://github.com/joeshannon/jekyll-collection-static-issue
The text was updated successfully, but these errors were encountered: