jekyll / jekyll-archives

:books: Archive pages for your Jekyll tags and categories.
https://jekyll.github.io/jekyll-archives/
MIT License
436 stars 99 forks source link

Initialize Archives generator with a hash #135

Closed ashmaroli closed 5 years ago

ashmaroli commented 5 years ago

Since we're calling config.fetch invariably without handling nil, its better that we set the optional parameter as an empty hash lest a NoMethodError: undefined method 'fetch' for nil:NilClass be raised.

The reason why this remained concealed all this while is because Jekyll::Site automatically initializes all Jekyll::Generator subclasses with site.config. Therefore, this change is not going to cause any impact whatsoever, but is correcting a wrong nevertheless.

mattr- commented 5 years ago

@jekyllbot: merge +dev