octopress-feeds 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 +5 -0
- data/assets/pages/article-feed.xml +1 -1
- data/assets/pages/link-feed.xml +1 -1
- data/assets/pages/main-feed.xml +1 -0
- data/lib/octopress-feeds/version.rb +1 -1
- data/lib/octopress-feeds.rb +6 -4
- 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: 42c80580ec116b301da152695fb086809bbdf3df
|
4
|
+
data.tar.gz: 7f32148cb1dd27519c8456de4019a77f8b9f8bb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb23558a555f2e84638dd42903b0e63e6a0d5b17c89a525a53fc7b3c6c8c157b56c2d6c72750eab797b01ec318a321cae8c664f04402a8d92be975d8e0d01710
|
7
|
+
data.tar.gz: 5ac7748196837714abf53a033c19d063197884f68b6cbc8ed9ea7cb14b7540873b037f33cdd2473981a949a8232a46324549db27f6ab2e33dfcef21b0b4cc7e9
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@ permalink: /feed/articles/
|
|
3
3
|
title: Articles-only Feed
|
4
4
|
feed: articles
|
5
5
|
---
|
6
|
-
{% if site.articles
|
6
|
+
{% if site.articles and site.articles.size > 0 and plugins.feeds.articles_feed %}
|
7
7
|
{% include feeds:head.xml %}
|
8
8
|
{% for post in site.articles limit:plugins.feeds.count %}
|
9
9
|
<entry>
|
data/assets/pages/link-feed.xml
CHANGED
@@ -3,7 +3,7 @@ permalink: /feed/links/
|
|
3
3
|
title: Linkpost Feed
|
4
4
|
feed: linkposts
|
5
5
|
---
|
6
|
-
{% if site.linkposts
|
6
|
+
{% if site.linkposts and site.linkposts.size > 0 and plugins.feeds.linkposts_feed %}
|
7
7
|
{% include feeds:head.xml %}
|
8
8
|
{% for post in site.linkposts limit:plugins.feeds.count %}
|
9
9
|
<entry>
|
data/assets/pages/main-feed.xml
CHANGED
data/lib/octopress-feeds.rb
CHANGED
@@ -42,11 +42,13 @@ module Octopress
|
|
42
42
|
posts = site['posts']
|
43
43
|
end
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
if !posts.empty?
|
46
|
+
post = posts.sort_by do |p|
|
47
|
+
p.data['date_updated'] || p.date
|
48
|
+
end.last
|
48
49
|
|
49
|
-
|
50
|
+
post.data['date_updated_xml'] || post.data['date_xml']
|
51
|
+
end
|
50
52
|
end
|
51
53
|
end
|
52
54
|
end
|