jekyll-sitemap 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.markdown +6 -0
- data/jekyll-sitemap.gemspec +1 -1
- data/lib/jekyll-sitemap.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8404cca92ec1c9c3be35db7d6c28c5ec99267a3
|
4
|
+
data.tar.gz: 9f1afcf5fe3b94a29c89cda2d4a387d57c7aaa5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9480487c055cc658c9765b01b0d4c51448943128ce4be9e10a60103d505d600d69b2b062df34ff2b1c43144f958781130b6cfcacba1056b631ba758cc28eb2a5
|
7
|
+
data.tar.gz: f526d084eafa64b35b79c1c56677a6e7d2fa5b5532f3e848af9cdcb4b2eeddde9875c961b764f1c809a4aea31a3f35dabec2bd6d0b13ca696b991f7bac6ac5c4
|
data/History.markdown
CHANGED
data/jekyll-sitemap.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "jekyll-sitemap"
|
5
5
|
spec.summary = "Automatically generate a sitemap.xml for your Jekyll site."
|
6
|
-
spec.version = "0.6.
|
6
|
+
spec.version = "0.6.3"
|
7
7
|
spec.authors = ["GitHub, Inc."]
|
8
8
|
spec.email = "support@github.com"
|
9
9
|
spec.homepage = "https://github.com/jekyll/jekyll-sitemap"
|
data/lib/jekyll-sitemap.rb
CHANGED
@@ -34,7 +34,11 @@ module Jekyll
|
|
34
34
|
|
35
35
|
# Destination for sitemap.xml file within the site source directory
|
36
36
|
def destination_path
|
37
|
-
@site.in_dest_dir
|
37
|
+
if @site.respond_to?(:in_dest_dir)
|
38
|
+
@site.in_dest_dir("sitemap.xml")
|
39
|
+
else
|
40
|
+
Jekyll.sanitized_path(@site.dest, "sitemap.xml")
|
41
|
+
end
|
38
42
|
end
|
39
43
|
|
40
44
|
# copy sitemap template from source to destination
|
@@ -53,7 +57,11 @@ module Jekyll
|
|
53
57
|
|
54
58
|
# Checks if a sitemap already exists in the site source
|
55
59
|
def sitemap_exists?
|
56
|
-
|
60
|
+
if @site.respond_to?(:in_source_dir)
|
61
|
+
File.exists? @site.in_source_dir("sitemap.xml")
|
62
|
+
else
|
63
|
+
File.exists? Jekyll.sanitized_path(@site.source, "sitemap.xml")
|
64
|
+
end
|
57
65
|
end
|
58
66
|
end
|
59
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-sitemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|