octopress-feeds 1.2.3 → 1.2.4
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 +30 -3
- data/assets/config.yml +0 -2
- data/assets/pages/article-feed.xml +1 -1
- data/assets/pages/link-feed.xml +1 -1
- 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: 32fe7ffd3a4d4a8b9e168653192cf322bc366ca5
|
4
|
+
data.tar.gz: 79a174f7ee75a3c5c01f162d86baaa95e75a0799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ef7adf155249df5cac2c22b002ee51360066cf544d3391e86459eee3d236cc5e68c2528708cc6726949c20b33478c95a26ffa080cf6bf46cb6505e94095c95c
|
7
|
+
data.tar.gz: 7fc999ccdc6124362d2fa58c0897c03d411f523fa4d5a03134474e4bd69dc7ba0a8c34d924a69ca11632deb3f5500370476cd2373bfe31cd9aabea461d57eb65
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -94,7 +94,7 @@ title: Deutsch Artikel Feed
|
|
94
94
|
{% include feeds:article-feed.xml lang='de' %}
|
95
95
|
```
|
96
96
|
|
97
|
-
To add a link
|
97
|
+
To add a link-posts feed, add a file to `/de/feed/links/index.xml` containing the following:
|
98
98
|
|
99
99
|
```
|
100
100
|
---
|
@@ -106,7 +106,7 @@ title: Deutsch Link Feed
|
|
106
106
|
|
107
107
|
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.
|
108
108
|
|
109
|
-
##
|
109
|
+
## Customize feeds
|
110
110
|
|
111
111
|
To list detailed information about this plugin, run `$ octopress ink list feeds`. This will output something like this:
|
112
112
|
|
@@ -167,12 +167,39 @@ This will create a configuration file populated with the defaults for this plugi
|
|
167
167
|
| `external_linkposts` | Link posts should direct visitors to the linked site. | true |
|
168
168
|
| `articles_feed` | Add an additional articles-only feed. | false |
|
169
169
|
| `linkposts_feed` | Add an additional link-posts-only feed. | false |
|
170
|
+
| `permalinks` | Set the permalink for feed pages. | |
|
170
171
|
|
171
|
-
|
172
|
+
|
173
|
+
### Feed permalinks
|
174
|
+
|
175
|
+
You can set the URL for the feed pages by configuring the `permalink` setting. Here's an example:
|
176
|
+
|
177
|
+
```yaml
|
178
|
+
permalinks:
|
179
|
+
main-feed: /rss/
|
180
|
+
link-feed: /rss/links/
|
181
|
+
article-feed: /rss/articles/
|
182
|
+
```
|
183
|
+
|
184
|
+
Now when you run `$ octopress ink list feeds` the pages section will look like this:
|
185
|
+
|
186
|
+
```
|
187
|
+
pages: urls:
|
188
|
+
- article-feed.xml /rss/articles/index.xml
|
189
|
+
- link-feed.xml /rss/links/index.xml
|
190
|
+
- main-feed.xml /rss/index.xml
|
191
|
+
```
|
192
|
+
|
193
|
+
Note: Multilingual feeds will not show up here. This only shows pages that come with this plugin.
|
194
|
+
|
195
|
+
### Excerpted feeds
|
196
|
+
|
197
|
+
Post excerpts are determined by Jekyll's `excerpt_separator` configuration. It defaults to splitting your
|
172
198
|
post at the first double line-break, `\n\n`. If you want more control over where the excerpt happens on your individual
|
173
199
|
posts, You can change that to something like `<!--more-->` and place that comment wherever you like in your post to
|
174
200
|
split the content there.
|
175
201
|
|
202
|
+
|
176
203
|
## Contributing
|
177
204
|
|
178
205
|
1. Fork it ( https://github.com/octopress/feeds/fork )
|
data/assets/config.yml
CHANGED
@@ -3,4 +3,4 @@ permalink: /feed/articles/
|
|
3
3
|
title: Articles Feed
|
4
4
|
feed: true
|
5
5
|
---
|
6
|
-
{% abort unless site.articles and site.articles.size > 0
|
6
|
+
{% abort unless site.articles and site.articles.size > 0 %}{% include feeds:article-feed.xml %}
|
data/assets/pages/link-feed.xml
CHANGED
@@ -3,4 +3,4 @@ permalink: /feed/links/
|
|
3
3
|
title: Links Feed
|
4
4
|
feed: true
|
5
5
|
---
|
6
|
-
{% abort unless site.linkposts and site.linkposts.size > 0
|
6
|
+
{% abort unless site.linkposts and site.linkposts.size > 0 %}{% include feeds:link-feed.xml %}
|
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.4
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octopress-ink
|