Without the config options in _config.yml posting fails
Closed this issue · 3 comments
Without the config options in the _config.yml file posting fails with the error
jekyll 2.5.3 | Error: undefined method '[]' for nil:NilClass
on the line
globally_enabled = @settings['enabled'] || true
Have a feeling something isn't right here as I looked at the code and it should be OK but it's failing when the config isn't there. Using the latest code from github
Should be resolved with
@settings = @site.config['jekyll-crosspost_to_medium'] || []
Right?
Sorry, I’m on paternity leave right now and haven’t had much sleep thanks to the 6-week-old and my brain may be failing me.
This should be fixed now. Give it a shot.
Sorry for not replying sooner @aarongustafson ! Was away on business and didn't get much of a chance to do anything on open source projects while I was away.
Thanks so much for taking the time to fix this - I'm no ruby expert otherwise I would have just done the PR myself :D