jekyll-algolia 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/algolia/file_browser.rb +12 -0
- data/lib/jekyll/algolia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d547736b3282c2c6785883b020f3dc257eccab5
|
4
|
+
data.tar.gz: c6d8d3425babfbeb511edd10e010202796781a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3742dc353e318baa82f2fc34aefa9ee3ac1edcca07e7e17cb7b0595dd88a7e28e802b951e5194650a55c9a2a6cd4e5e6f192d1f93a16aa30b1236420784b6be
|
7
|
+
data.tar.gz: 72ecdb419401a45183b0f6cd8541d20f3931604387f1d102370c49bb55d90dec157015d5d2aea0afe48edeaf39516377a910b43b0940696c3fa54c293bd6cb72
|
@@ -50,6 +50,7 @@ module Jekyll
|
|
50
50
|
def self.indexable?(file)
|
51
51
|
return false if static_file?(file)
|
52
52
|
return false if is_404?(file)
|
53
|
+
return false if redirect?(file)
|
53
54
|
return false unless allowed_extension?(file)
|
54
55
|
return false if excluded_from_config?(file)
|
55
56
|
return false if excluded_from_hook?(file)
|
@@ -80,6 +81,17 @@ module Jekyll
|
|
80
81
|
end
|
81
82
|
# rubocop:enable Naming/PredicateName
|
82
83
|
|
84
|
+
# Public: Check if the file is redirect page
|
85
|
+
#
|
86
|
+
# file - The Jekyll file
|
87
|
+
#
|
88
|
+
# Plugins like jekyll-redirect-from add dynamic pages that only contain
|
89
|
+
# an HTML meta refresh. We need to exclude those files from indexing.
|
90
|
+
# https://github.com/jekyll/jekyll-redirect-from
|
91
|
+
def self.redirect?(file)
|
92
|
+
file.respond_to?(:name) && file.name == 'redirect.html'
|
93
|
+
end
|
94
|
+
|
83
95
|
# Public: Check if the file has one of the allowed extensions
|
84
96
|
#
|
85
97
|
# file - The Jekyll file
|