Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Oct 13, 2023
1 parent 4c8306d commit 57df019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/jekyll_lunr_js_custom_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def generate(site)

ctx = ExecJS.compile(index_js)

#index = ctx.eval('JSON.stringify(idx)')
index = ctx.eval('idx')
if @format == 'json'
total = {"docs": @docs, "index": index, "baseurl": @jekyllconfig['baseurl'], "lunr_settings": @config }.to_json
else
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll_lunr_js_custom_search/indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def generate(site)

ctx = ExecJS.compile(index_js)

#index = ctx.eval('JSON.stringify(idx)')
index = ctx.eval('idx')
if @format == 'json'
total = {"docs": @docs, "index": index, "baseurl": @jekyllconfig['baseurl'], "lunr_settings": @config }.to_json
else
Expand Down

0 comments on commit 57df019

Please sign in to comment.