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

set page.output to empty string instead of nil #137

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

Crunch09
Copy link
Member

The output of the redirect page is used to initialize the content and output of the doc. Before this patch this was nil which raised an exception when gsub was called on it.

fixes jekyll/jekyll#5755

Copy link
Contributor

@benbalter benbalter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as the other tests pass, I don't see any downside. 👍

@@ -34,6 +34,7 @@ def self.redirect_to(doc, path)
# Overwrite the default read_yaml method since the file doesn't exist
def read_yaml(_base, _name, _opts = {})
self.content = ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps self.content = self.output = ""?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will change it, thank you!

@benbalter
Copy link
Contributor

@jekyllbot: merge +minor.

@jekyllbot jekyllbot merged commit 9fb3acf into jekyll:master Jan 12, 2017
jekyllbot added a commit that referenced this pull request Jan 12, 2017
@benbalter
Copy link
Contributor

Thanks @Crunch09! Will work to get a release out with this fix as I know it's breaking builds. Thanks for putting this together! 🌮 🦃 🐢 🌴

@Crunch09 Crunch09 deleted the empty-output branch January 12, 2017 14:45
@jekyll jekyll locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to build jekyll site locally
3 participants