bridgetown-sitemap 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/bridgetown-sitemap/version.rb +1 -1
- data/lib/bridgetown/resource/base.rb +2 -1
- data/test/test_sitemap.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4d18b78fd58f13369c0d31a8724d4f21c75e808633ce7d6b57e33096c01bc84
|
4
|
+
data.tar.gz: 4d36151297d1fcd9f6e346fba34429e980fc679bb7bf6b9f9238f23a6d361d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cf2fcc93b4f2ed10d6ee42d5fb2f3aa0f238116678563a0be1923ba3588d9f09502cc486684a314fb9305ef566f1b56e5c52589340b1067f877181ed28a3d33
|
7
|
+
data.tar.gz: 161b5344a25c2dc540652da65bae69d285cdda829570213408461926f17d876aad6e50fae9d6e9173c3222bc23a7336e3f9302f4acebd99d2b23cc6bc9aac5eb
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,7 @@ content_engine: "resource"
|
|
31
31
|
The `<lastmod>` tag in the `sitemap.xml` will reflect by priority:
|
32
32
|
|
33
33
|
1. A personalised date if you add the variable `last_modified_at:` with a date in the Front Matter. (*Dates need to be formatted as* `%Y-%m-%d %H:%M:%S %z`)
|
34
|
-
2. The modified date of the file as reported by
|
34
|
+
2. The modified date of the file as reported by `git log`.
|
35
35
|
|
36
36
|
|
37
37
|
## Exclusions
|
data/test/test_sitemap.rb
CHANGED
@@ -186,6 +186,22 @@ class TestSitemap < BridgetownSitemap::Test
|
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
189
|
+
context "rendering the site with an uncommitted file" do
|
190
|
+
setup do
|
191
|
+
File.write(source_dir("new.html"), "---\n---")
|
192
|
+
build_site
|
193
|
+
@sitemap = File.read(dest_dir("sitemap.xml"))
|
194
|
+
end
|
195
|
+
|
196
|
+
teardown do
|
197
|
+
File.delete(source_dir("new.html"))
|
198
|
+
end
|
199
|
+
|
200
|
+
should "include the uncommitted file in the sitemap" do
|
201
|
+
assert_match %r!<loc>https://example.com/new/</loc>!, @sitemap
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
189
205
|
context "rendering the site without the resource content engine" do
|
190
206
|
setup { config.delete "content_engine" }
|
191
207
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-sitemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ayush Newatia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|