jekyll-lunr-js-search 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3e58be6037420bc1d50a3a5901046a7988d92bb
|
4
|
+
data.tar.gz: b32476b76f113f620d1b8896ae1905a2001a34a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8103b1e3299309800f9880c18ebc3641b84f88f097276cbe05c3dbc4a983ee7f6ba8b928dcb78095df9e68e11f0e0b51b8c37f3ba29cb64beca0e75ffeb527f
|
7
|
+
data.tar.gz: e42c821b38740b85b092f89b3bc7e48064bf573afd554b244a53b571b58836bbba1169496324074ae4ef6ecf986b3f2de43b013bbe9e39a2ce06ed27608cb3f9
|
@@ -91,7 +91,7 @@ module Jekyll
|
|
91
91
|
}
|
92
92
|
|
93
93
|
filepath = File.join(site.dest, filename)
|
94
|
-
File.open(filepath, "w") { |f| f.write(
|
94
|
+
File.open(filepath, "w") { |f| f.write(JSON.dump(total)) }
|
95
95
|
Jekyll.logger.info "Lunr:", "Index ready (lunr.js v#{@lunr_version})"
|
96
96
|
added_files = [filename]
|
97
97
|
|
@@ -134,7 +134,7 @@ module Jekyll
|
|
134
134
|
site.documents.each {|document| items << document.dup }
|
135
135
|
|
136
136
|
# only process files that will be converted to .html and only non excluded files
|
137
|
-
items.select! {|i| output_ext(i) == '.html' && ! @excludes.any? {|s| (i.url =~ Regexp.new(s)) != nil } }
|
137
|
+
items.select! {|i| i.respond_to?(:output_ext) && output_ext(i) == '.html' && ! @excludes.any? {|s| (i.url =~ Regexp.new(s)) != nil } }
|
138
138
|
items.reject! {|i| i.data['exclude_from_search'] }
|
139
139
|
|
140
140
|
items
|
@@ -6,7 +6,11 @@ module Jekyll
|
|
6
6
|
def self.create(page_or_post, renderer)
|
7
7
|
case page_or_post
|
8
8
|
when Jekyll::Page, Jekyll::Document
|
9
|
-
date
|
9
|
+
if defined?(page_or_post.date)
|
10
|
+
date = page_or_post.date
|
11
|
+
else
|
12
|
+
date = nil
|
13
|
+
end
|
10
14
|
categories = []
|
11
15
|
else
|
12
16
|
if defined?(Jekyll::Post) and page_or_post.is_a?(Jekyll::Post)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-lunr-js-search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|