jekyll-sitemap 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.markdown +9 -1
- data/README.md +11 -0
- data/jekyll-sitemap.gemspec +1 -1
- data/lib/jekyll-sitemap.rb +1 -1
- data/lib/sitemap.xml +1 -1
- data/spec/jekyll-sitemap_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb47192318cebe414dcbb039415aa8552eba9e09
|
|
4
|
+
data.tar.gz: cbd6b3a37119d0d53169b00191c7f375ef11f2d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a9248ae011481a24d01f72deec69acdf4fa63e80a238ed95e4d7df92cba11147c1abdf5b8b158a5e5dac71a3212cb42bd2fa51c922caa56f3370e67834e3987
|
|
7
|
+
data.tar.gz: 375306d7c78a56de56a208369bc344d0f5f7ac673a7ac2f2a697531b6d2be3d6e04a2343ed2e9340b283c71aa3f7157b6d279e5703e17baae3407ac866770f9b
|
data/History.markdown
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
##
|
|
1
|
+
## 0.6.1 / 2014-10-17
|
|
2
2
|
|
|
3
3
|
### Minor Enhancements
|
|
4
4
|
|
|
5
|
+
* Strip excess whitespace (#40)
|
|
6
|
+
|
|
5
7
|
### Bug Fixes
|
|
6
8
|
|
|
9
|
+
* Add UTC offset to `<lastmod>` to handle non-UTC timezones (#49)
|
|
10
|
+
|
|
11
|
+
### Development Fixes
|
|
12
|
+
|
|
13
|
+
* Adding information about exclusion flag (#45)
|
|
14
|
+
|
|
7
15
|
## 0.6.0 / 2014-09-05
|
|
8
16
|
|
|
9
17
|
### Minor Enhancements
|
data/README.md
CHANGED
|
@@ -22,6 +22,15 @@ those other gems if you *want* the sitemap to include the generated
|
|
|
22
22
|
content, or *before* those other gems if you *don't want* the sitemap to
|
|
23
23
|
include the generated content from the gems. (Programming is *hard*.)
|
|
24
24
|
|
|
25
|
+
## Exclusions
|
|
26
|
+
|
|
27
|
+
If you would like to exclude specific pages/posts from the sitemap set the
|
|
28
|
+
sitemap flag to `false` in the front matter for the page/post.
|
|
29
|
+
|
|
30
|
+
```yml
|
|
31
|
+
sitemap: false
|
|
32
|
+
```
|
|
33
|
+
|
|
25
34
|
## Developing locally
|
|
26
35
|
|
|
27
36
|
Use `script/bootstrap` to bootstrap your local development environment.
|
|
@@ -42,4 +51,6 @@ Use `script/console` to load a local IRB console with the Gem.
|
|
|
42
51
|
|
|
43
52
|
## Issues
|
|
44
53
|
1. If the `sitemap.xml` doesn't generate in the `\_site` folder ensure `\_config.yml` doesn't have `safe: true`. That prevents all plugins from working.
|
|
54
|
+
2. If the `sitemap.xml` doesn't generate in the `\_site` folder, ensure that you don't have a sitemap generator plugin in your `_plugin` folder.
|
|
55
|
+
|
|
45
56
|
|
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.1"
|
|
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
|
@@ -42,7 +42,7 @@ module Jekyll
|
|
|
42
42
|
site_map.content = File.read(source_path)
|
|
43
43
|
site_map.data["layout"] = nil
|
|
44
44
|
site_map.render(Hash.new, @site.site_payload)
|
|
45
|
-
site_map.output
|
|
45
|
+
site_map.output.gsub(/[\s\n]*\n+/, "\n")
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# Checks if a sitemap already exists in the site source
|
data/lib/sitemap.xml
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{% for file in site.html_files %}
|
|
34
34
|
<url>
|
|
35
35
|
<loc>{{ site_url }}{{ file.path }}</loc>
|
|
36
|
-
<lastmod>{{ file.modified_time |
|
|
36
|
+
<lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod>
|
|
37
37
|
<priority>0.6</priority>
|
|
38
38
|
</url>
|
|
39
39
|
{% endfor %}
|
data/spec/jekyll-sitemap_spec.rb
CHANGED
|
@@ -82,6 +82,6 @@ describe(Jekyll::JekyllSitemap) do
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
it "correctly formats timestamps of static files" do
|
|
85
|
-
expect(contents).to match /\/this-is-a-subfile\.html<\/loc>\s+<lastmod>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}
|
|
85
|
+
expect(contents).to match /\/this-is-a-subfile\.html<\/loc>\s+<lastmod>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(-|\+)\d{2}:\d{2}<\/lastmod>/
|
|
86
86
|
end
|
|
87
87
|
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.1
|
|
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
|
+
date: 2014-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
125
125
|
version: '0'
|
|
126
126
|
requirements: []
|
|
127
127
|
rubyforge_project:
|
|
128
|
-
rubygems_version: 2.2.
|
|
128
|
+
rubygems_version: 2.2.2
|
|
129
129
|
signing_key:
|
|
130
130
|
specification_version: 4
|
|
131
131
|
summary: Automatically generate a sitemap.xml for your Jekyll site.
|