jekyll-feed 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.markdown +4 -0
- data/README.md +2 -2
- data/jekyll-feed.gemspec +1 -1
- data/lib/feed.xml +1 -1
- data/spec/fixtures/_posts/2014-03-04-march-the-fourth.md +2 -0
- data/spec/jekyll-feed_spec.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29260f36998522e4c79581e9db32ab1da5beacbe
|
|
4
|
+
data.tar.gz: 8f471054cec8cadb271288e79b84e90604ab667a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd31985f2ffb8f3d10de9025ebd3a333b4d9bb4344953f633fe0fc94d458e2130b3a7c758f6c206a37075b1d2884f6a21c60bd59781359c542856936dd9e88c4
|
|
7
|
+
data.tar.gz: 6f4ca44cab5047f5910c0e2b2b6c0c14baa7c8484d734d9b349ad2cd033a5fc6368005187000590a822654ba247f547dbef0d2199e77b4c4e794475f785f74cb
|
data/History.markdown
CHANGED
data/README.md
CHANGED
|
@@ -56,6 +56,8 @@ The plugin will use the following post metadata, automatically generated by Jeky
|
|
|
56
56
|
|
|
57
57
|
Additionally, the plugin will use the following values, if present in a post's YAML front matter:
|
|
58
58
|
|
|
59
|
+
* `image` - URL of an image that is representative of the post (can also be passed as `image.path`)
|
|
60
|
+
|
|
59
61
|
* `author` - The author of the post, e.g., "Dr. Jekyll". If none is given, feed readers will look to the feed author as defined in `_config.yml`. Like the feed author, this can also be an object or a reference to an author in `_data/authors.yml` (see below).
|
|
60
62
|
|
|
61
63
|
### Author information
|
|
@@ -112,8 +114,6 @@ There are several ways to convey author-specific information. Author information
|
|
|
112
114
|
author: benbalter
|
|
113
115
|
```
|
|
114
116
|
|
|
115
|
-
* `image` - URL of an image that is representative of the post.
|
|
116
|
-
|
|
117
117
|
### Meta tags
|
|
118
118
|
|
|
119
119
|
The plugin exposes a helper tag to expose the appropriate meta tags to support automated discovery of your feed. Simply place `{% feed_meta %}` someplace in your template's `<head>` section, to output the necessary metadata.
|
data/jekyll-feed.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "jekyll-feed"
|
|
5
|
-
spec.version = "0.7.
|
|
5
|
+
spec.version = "0.7.2"
|
|
6
6
|
spec.authors = ["Ben Balter"]
|
|
7
7
|
spec.email = ["ben.balter@github.com"]
|
|
8
8
|
spec.summary = "A Jekyll plugin to generate an Atom feed of your Jekyll posts"
|
data/lib/feed.xml
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
<summary type="html">{{ post.excerpt | strip_html | replace: '\n', ' ' | strip | xml_escape }}</summary>
|
|
84
84
|
{% endif %}
|
|
85
85
|
|
|
86
|
-
{% assign post_image = post.image %}
|
|
86
|
+
{% assign post_image = post.image.path | default: post.image %}
|
|
87
87
|
{% if post_image %}
|
|
88
88
|
{% unless post_image contains "://" %}
|
|
89
89
|
{% assign post_image = post_image | prepend: url_base | xml_escape %}
|
data/spec/jekyll-feed_spec.rb
CHANGED
|
@@ -96,6 +96,7 @@ describe(Jekyll::JekyllFeed) do
|
|
|
96
96
|
it "includes the item image" do
|
|
97
97
|
expect(contents).to include('<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://example.org/image.png" />')
|
|
98
98
|
expect(contents).to include('<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://cdn.example.org/absolute.png" />')
|
|
99
|
+
expect(contents).to include('<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://example.org/object-image.png" />')
|
|
99
100
|
end
|
|
100
101
|
|
|
101
102
|
context "parsing" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-feed
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Balter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
176
176
|
version: '0'
|
|
177
177
|
requirements: []
|
|
178
178
|
rubyforge_project:
|
|
179
|
-
rubygems_version: 2.
|
|
179
|
+
rubygems_version: 2.6.7
|
|
180
180
|
signing_key:
|
|
181
181
|
specification_version: 4
|
|
182
182
|
summary: A Jekyll plugin to generate an Atom feed of your Jekyll posts
|