Skip to content

Commit

Permalink
Fix NilClass error when there is no katex: key in a user's jekyll (#4)
Browse files Browse the repository at this point in the history
* Fix NilClass error when there is no `katex:` key in a user's jekyll
config
* Version 0.2.1
  • Loading branch information
Jerry Lin committed Jul 1, 2018
1 parent 185ee4c commit 85ead2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jekyll-katex/configuration.rb
Expand Up @@ -16,7 +16,7 @@ class Configuration
}
}.freeze

JEKYLL_CONFIG = Jekyll.configuration['katex']
JEKYLL_CONFIG = Jekyll.configuration['katex'] || {}

def self.js_path
js_filename = JEKYLL_CONFIG['js_filename'] || CONFIG_DEFAULTS[:js_filename]
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-katex/version.rb
Expand Up @@ -2,6 +2,6 @@

module Jekyll
module Katex
VERSION = '0.2.0'
VERSION = '0.2.1'
end
end

0 comments on commit 85ead2c

Please sign in to comment.