Skip to content

Commit

Permalink
Merge pull request #2 from forestryio/hash-not-object
Browse files Browse the repository at this point in the history
fixed issue with trying to access hash as object
  • Loading branch information
envygeeks committed Nov 23, 2016
2 parents 6009087 + 40f0652 commit 63977db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/menus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def to_liquid_drop
def _data_menus
out = {}

if @site.data["menus"] && @site.data.menus.is_a?(Hash)
if @site.data["menus"] && @site.data["menus"].is_a?(Hash)
then @site.data["menus"].each do |key, menu|
if menu.is_a?(Hash) || menu.is_a?(Array)
(menu = [menu].flatten).each do |item|
Expand Down

0 comments on commit 63977db

Please sign in to comment.