jekyll-news-sitemap 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: 91a9a3946d3981039dde60565d8fb3e450ec8080c60ad6f492700f29c0827f55
4
- data.tar.gz: a77c75f763fc5d20b264ac2e55df62b2b70483b7f4c963c2d71ba7f866a41e5d
3
+ metadata.gz: ecd6b67564e699e886bad3e4033a30abfff07cb36404856b2a284bf65002b7d3
4
+ data.tar.gz: 73f1ed9eae6e917ff40669e4a6e13f38f539eee30ec3300165ab99a9d6af7369
5
5
  SHA512:
6
- metadata.gz: 99d7cd585132968e7183f018ad0096730d4c9d4840c08ac90586a237f24ef69f643606f77ce3a8489e71573287bcf43eec857b6b248a6c77f3da061009c11677
7
- data.tar.gz: 14d25281f8982297dbfc518c701eec07fc9237b30c3947f7b646f1048fb471f56157626b38fe200b95d986d6182997b9041e0bbc977c7652c898999413eff684
6
+ metadata.gz: b600b6d0d296532decba90843130f8e4be6d67451ba49cb8a79093ac52f20bb31dd27e22b8698dfe051e2ee92f999c8e520d3be282923bc01330104a2ae3f773
7
+ data.tar.gz: 691ca88cb9c5470a74a3d3e2517b53b2d568bee35116953ae21f13f035c9ee738e34004f7288282e2842703c6024e3aec54307254d66342381149767b2f65b54
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-news-sitemap (0.0.1)
4
+ jekyll-news-sitemap (0.0.2)
5
5
  jekyll (>= 3.7, < 5.0)
6
6
 
7
7
  GEM
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module NewsSitemap
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
data/lib/sitemap_news.xml CHANGED
@@ -3,29 +3,8 @@
3
3
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
4
4
  xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
5
5
 
6
- {% assign collections = site.collections | where_exp:'collection','collection.output != false' %}
7
-
8
- {% for collection in collections %}
9
- {% assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' %}
10
- {% for doc in docs %}
11
- <url>
12
- <loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
13
-
14
- <news:news>
15
- <news:publication>
16
- <news:name>{{page.publisher}}</news:name>
17
- <news:language>en</news:language>
18
- </news:publication>
19
- <news:publication_date>{{ page.date | date_to_xmlschema }}</news:publication_date>
20
- <news:title>{{ page.title }}</news:title>
21
- </news:news>
22
- </url>
23
- {% endfor %}
24
- {% endfor %}
25
-
26
- {% assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"'
27
- %}
28
- {% for page in pages %}
6
+ {% assign posts = site.posts | where_exp:'doc','doc.sitemap != false' %}
7
+ {% for page in posts %}
29
8
  <url>
30
9
  <loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
31
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-news-sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav Katkov