jekyll-feed 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jekyll-feed.gemspec +1 -1
- data/lib/feed.xml +6 -6
- data/script/cibuild +2 -0
- data/spec/fixtures/_posts/2013-12-12-dec-the-second.md +1 -1
- data/spec/jekyll-feed_spec.rb +4 -0
- 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: 6a3e8a5253523aaa7fc4f33ccefc07b349ba0796
|
4
|
+
data.tar.gz: 0fee2ead1d6942edb54d2acd319a77eccf626d34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c78bbf8800aa444a6e473fc3e6ef2dab35e9cd535ede01828179d5b0da783ea08825311c87b329eb1f68a426284648ed70d5e74f98490fb750d8c64c12667e23
|
7
|
+
data.tar.gz: d2291e9034c8db82aae3ac1b8edef548265f5a92acd0b0b10ad06df90f668f67043672d3473a9159a3d9d4a252ac5b859a2839312a84e5b16fa5daab82572ceb
|
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.1.
|
5
|
+
spec.version = "0.1.1"
|
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
@@ -6,7 +6,7 @@
|
|
6
6
|
{% endif %}
|
7
7
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
8
8
|
<generator uri="http://jekyllrb.com" version="{{ jekyll.version }}">Jekyll</generator>
|
9
|
-
<link href="{{
|
9
|
+
<link href="{{ page.url | prepend: url_base }}" rel="self" type="application/atom+xml" />
|
10
10
|
<link href="{{ url_base }}/" rel="alternate" type="text/html" />
|
11
11
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
12
12
|
<id>{{ url_base }}/</id>
|
@@ -27,13 +27,13 @@
|
|
27
27
|
|
28
28
|
{% for post in site.posts %}
|
29
29
|
<entry>
|
30
|
-
<title>{{ post.title | xml_escape }}</title>
|
31
|
-
<link href="{{
|
30
|
+
<title>{{ post.title | markdownify | strip_html | strip_newlines | xml_escape }}</title>
|
31
|
+
<link href="{{ post.url | prepend: url_base }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
|
32
32
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
33
33
|
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
34
34
|
|
35
|
-
<id>{{
|
36
|
-
<content type="html">{{ post.content | xml_escape }}</content>
|
35
|
+
<id>{{ post.id | prepend: url_base }}</id>
|
36
|
+
<content type="html">{{ post.content | markdownify | xml_escape }}</content>
|
37
37
|
|
38
38
|
{% if post.author %}
|
39
39
|
<author>
|
@@ -50,7 +50,7 @@
|
|
50
50
|
{% endfor %}
|
51
51
|
|
52
52
|
{% if post.excerpt %}
|
53
|
-
<summary>{{ post.excerpt | strip_html | strip_newlines | xml_escape }}</summary>
|
53
|
+
<summary>{{ post.excerpt | markdownify | strip_html | strip_newlines | xml_escape }}</summary>
|
54
54
|
{% endif %}
|
55
55
|
</entry>
|
56
56
|
{% endfor %}
|
data/script/cibuild
CHANGED
data/spec/jekyll-feed_spec.rb
CHANGED
@@ -53,6 +53,10 @@ describe(Jekyll::JekyllFeed) do
|
|
53
53
|
expect(contents).to match /Line 1\nLine 2\nLine 3/
|
54
54
|
end
|
55
55
|
|
56
|
+
it "converts markdown posts to HTML" do
|
57
|
+
expect(contents).to match /<p>March the second!<\/p>/
|
58
|
+
end
|
59
|
+
|
56
60
|
context "parsing" do
|
57
61
|
let(:feed) { RSS::Parser.parse(contents) }
|
58
62
|
|