Skip to content

Commit

Permalink
Update built plugin after merging pull request slashdotdash#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Smith committed Apr 13, 2013
1 parent 18d3d5f commit e3f07b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/jekyll_lunr_js_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def generate(site)
private

def pages_to_index(site)
items = site.pages.dup.concat(site.posts)
# Deep copy pages
items = []
site.pages.each {|page| items << page.dup }
site.posts.each {|post| items << post.dup }

# only process files that will be converted to .html and only non excluded files
items.select! {|i| i.output_ext == '.html' && ! @excludes.any? {|s| (i.url =~ Regexp.new(s)) != nil } }
Expand Down

0 comments on commit e3f07b9

Please sign in to comment.