octopress-feeds 1.2.6 → 1.2.7

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
  SHA1:
3
- metadata.gz: 71bee0e15a5b3f5e34b414c4c2c6d89e8c06bb89
4
- data.tar.gz: 34990d035956040f710ecbd122834cf9d6677fb1
3
+ metadata.gz: 7d307a33c33e838bbe81f6193b41804f7308e912
4
+ data.tar.gz: dd85e6ed168dd55d82f2a60747656d1970fde500
5
5
  SHA512:
6
- metadata.gz: 4f20f380fc274eef3c11dca8dfbaefba9b96830a0b03eb3af0613f4b552b467ccda5f264733cd279d566d22c3ffe05706eeecc151ac906cd6d8d54fd9aa434b6
7
- data.tar.gz: d5e973edb2bfa19ac32f6b6061d38e128196556e862f7d626bfb4d84d40460b7db8568d8c3571e9c59db78b9bf9933524b73383380b134085de76089f5c272ac
6
+ metadata.gz: 1ab992ed2c4439b5dcba3e4726465bcb6145bb04b183abe41dee41f91c7a66d1520e3e2367d915131f8ef24562e3c0b6808bbdc26f88b52c3c6b91c8f0a72fcf
7
+ data.tar.gz: cf1df6581d4bb85c229a2475ab3373e66ee78f852c0081fb0987851283e0f1026f030982da1772e3d3790c08e96ab2a14d9e8ab6f17f73730e8f24934e97f3d7
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.7 (2015-01-31)
4
+
5
+ - Added support for new octopress-multilingual page.lang feature.
6
+
3
7
  ### 1.2.6 (2015-01-27)
4
8
 
5
- - On multilanguage sites, the main language feed URL will default to `/[lang]/feed/index.xml`
9
+ - On multilingual sites, the main language feed URL will default to `/[lang]/feed/index.xml`
6
10
 
7
11
  ### 1.2.5 (2015-01-26)
8
12
 
data/README.md CHANGED
@@ -86,8 +86,9 @@ First, create a page at `/de/feed/index.xml` (or whatever path suits your site's
86
86
  ---
87
87
  feed: true
88
88
  title: Deutsch feed
89
+ lang: de
89
90
  ---
90
- {% include feeds:main-feed.xml lang='de' %}
91
+ {% include feeds:main-feed.xml %}
91
92
  ```
92
93
 
93
94
  The page config, `feed: true` ensures that it will be added to your site's feed listing with `{% feed_tag %}`. The title, as you'd
@@ -101,8 +102,9 @@ To create an articles feed, add a file to `/de/feed/articles/index.xml` (or wher
101
102
  ---
102
103
  feed:true
103
104
  title: Deutsch Artikel Feed
105
+ lang: de
104
106
  ---
105
- {% include feeds:article-feed.xml lang='de' %}
107
+ {% include feeds:article-feed.xml %}
106
108
  ```
107
109
 
108
110
  To add a link-posts feed, add a file to `/de/feed/links/index.xml` containing the following:
@@ -111,8 +113,9 @@ To add a link-posts feed, add a file to `/de/feed/links/index.xml` containing th
111
113
  ---
112
114
  feed:true
113
115
  title: Deutsch Link Feed
116
+ lang: de
114
117
  ---
115
- {% include feeds:article-feed.xml lang='de' %}
118
+ {% include feeds:article-feed.xml %}
116
119
  ```
117
120
 
118
121
  That's it. When you generate your site. These feeds should contain only German posts. If you have more than one language, you can just repeat the steps above for each.
@@ -1,7 +1,7 @@
1
- {% assign feed_type = 'articles' %}{% set_lang include.lang %}{% include feeds:head.xml %}
1
+ {% assign feed_type = 'articles' %}{% include feeds:head.xml %}
2
2
  {% for post in site.articles limit:plugins.feeds.count %}
3
3
  <entry>
4
4
  {% include feeds:entry.xml %}
5
5
  </entry>
6
6
  {% endfor %}
7
- </feed>{% endset_lang %}
7
+ </feed>
@@ -12,7 +12,7 @@
12
12
  <name>{% return post.author || site.author %}</name>
13
13
  <uri>{% if post.author_site %}{{ post.author_site }}{% else %}{{ site.url | join_url: site.baseurl }}{% endif %}</uri>
14
14
  </author>
15
- <content type="html" xml:base="{{ site.url | join_url: site.baseurl }}" xml:lang="{% return site.lang || 'en' %}">
15
+ <content type="html" xml:base="{{ site.url | join_url: site.baseurl }}" {% if page.lang %}xml:lang="{{ page.lang }}"{% endif %}>
16
16
  <![CDATA[
17
17
  {% if plugins.feeds.excerpts == false or post.linkpost %}
18
18
  {{ post.content | full_urls }}
@@ -6,5 +6,5 @@
6
6
  <id>{{ site.url | join_url: site.baseurl }}</id>
7
7
  <updated>{% feed_updated_date %}</updated>
8
8
  <generator uri="http://octopress.org/">Octopress</generator>
9
- <language>{% return site.lang || 'en' %}</language>
9
+ {% if page.lang %}<language>{{ page.lang }}</language>{% endif %}
10
10
  <rights>Copyright © {{ site.time | date: '%Y' }}, {{ site.author | strip_html }}</rights>
@@ -1,7 +1,7 @@
1
- {% assign feed_type = 'linkposts' %}{% set_lang include.lang %}{% include feeds:head.xml %}
1
+ {% assign feed_type = 'linkposts' %}{% include feeds:head.xml %}
2
2
  {% for post in site.linkposts limit:plugins.feeds.count %}
3
3
  <entry>
4
4
  {% include feeds:entry.xml %}
5
5
  </entry>
6
6
  {% endfor %}
7
- </feed>{% endset_lang %}
7
+ </feed>
@@ -1,7 +1,7 @@
1
- {% assign feed_type = 'posts' %}{% set_lang include.lang %}{% include feeds:head.xml %}
1
+ {% assign feed_type = 'posts' %}{% include feeds:head.xml %}
2
2
  {% for post in site.posts limit:plugins.feeds.count %}
3
3
  <entry>
4
4
  {% include feeds:entry.xml %}
5
5
  </entry>
6
6
  {% endfor %}
7
- </feed>{% endset_lang %}
7
+ </feed>
@@ -2,5 +2,6 @@
2
2
  permalink: /feed/articles/
3
3
  title: Articles Feed
4
4
  feed: true
5
+ lang: en
5
6
  ---
6
7
  {% include feeds:article-feed.xml %}
@@ -2,5 +2,6 @@
2
2
  permalink: /feed/links/
3
3
  title: Links Feed
4
4
  feed: true
5
+ lang: en
5
6
  ---
6
7
  {% include feeds:link-feed.xml %}
@@ -2,5 +2,6 @@
2
2
  permalink: /feed/
3
3
  title: Main Feed
4
4
  feed: true
5
+ lang: en
5
6
  ---
6
7
  {% include feeds:main-feed.xml %}
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Feeds
3
- VERSION = "1.2.6"
3
+ VERSION = "1.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-ink