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 +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +6 -3
- data/assets/includes/article-feed.xml +2 -2
- data/assets/includes/entry.xml +1 -1
- data/assets/includes/head.xml +1 -1
- data/assets/includes/link-feed.xml +2 -2
- data/assets/includes/main-feed.xml +2 -2
- data/assets/pages/article-feed.xml +1 -0
- data/assets/pages/link-feed.xml +1 -0
- data/assets/pages/main-feed.xml +1 -0
- data/lib/octopress-feeds/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d307a33c33e838bbe81f6193b41804f7308e912
|
4
|
+
data.tar.gz: dd85e6ed168dd55d82f2a60747656d1970fde500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|
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' %}{%
|
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>
|
7
|
+
</feed>
|
data/assets/includes/entry.xml
CHANGED
@@ -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="{
|
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 }}
|
data/assets/includes/head.xml
CHANGED
@@ -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
|
-
|
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' %}{%
|
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>
|
7
|
+
</feed>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
{% assign feed_type = 'posts' %}{%
|
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>
|
7
|
+
</feed>
|
data/assets/pages/link-feed.xml
CHANGED
data/assets/pages/main-feed.xml
CHANGED
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.
|
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-
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octopress-ink
|