Skip to content

Commit

Permalink
Fixing use double-splats for hash parameters error
Browse files Browse the repository at this point in the history
Now an error from Ruby 3.0.0
  • Loading branch information
felnne committed Mar 17, 2021
1 parent 2ba953f commit 6c8b53e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jekyll/menus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _front_matter_menu(menu, page, out={})
# --

if menu.is_a?(Array) || menu.is_a?(String)
_simple_front_matter_menu(menu, {
_simple_front_matter_menu(menu, **{
:mergeable => out, :page => page
})

Expand All @@ -127,7 +127,7 @@ def _front_matter_menu(menu, page, out={})
# --

elsif item.is_a?(Hash)
out[key] << _fill_front_matter_menu(item, {
out[key] << _fill_front_matter_menu(item, **{
:page => page
})

Expand Down Expand Up @@ -178,7 +178,7 @@ def _simple_front_matter_menu(menu, mergeable: nil, page: nil)

else
mergeable[menu] ||= []
mergeable[menu] << _fill_front_matter_menu(nil, {
mergeable[menu] << _fill_front_matter_menu(nil, **{
:page => page
})
end
Expand Down

0 comments on commit 6c8b53e

Please sign in to comment.