Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Oct 13, 2023
1 parent ba9214d commit 7a4f776
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build/jekyll_lunr_js_custom_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@ def generate(site)
end
end
if jekyllfield != field["searchfield"] && format_field != nil
if item[field["searchfield"]] == nil
item[field["searchfield"]] = format_field.strip()
else
item[field["searchfield"]] += " " + format_field.strip()
begin
if item[field["searchfield"]] == nil
item[field["searchfield"]] = format_field.strip()
else
item[field["searchfield"]] += " " + format_field.strip()
end
rescue => error
puts "Warning from building of index: #{error} for search field: #{field["searchfield"]}"
end
end
end
Expand Down

0 comments on commit 7a4f776

Please sign in to comment.