Skip to content

Commit

Permalink
Merge pull request #45 from jekyll/url-uri
Browse files Browse the repository at this point in the history
Use uri in all places
  • Loading branch information
benbalter committed May 25, 2015
2 parents fe6f661 + 3108dee commit 7c83620
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
{% if post.author.email %}
<email>{{ post.author.email | xml_escape }}</email>
{% endif %}
{% if post.author.url %}
<uri>{{ post.author.url | xml_escape }}</uri>
{% if post.author.uri %}
<uri>{{ post.author.uri | xml_escape }}</uri>
{% endif %}
</author>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion spec/jekyll-feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
end

it "supports post author name as an object" do
expect(contents).to match /<author>\s*<name>Ben<\/name>\s*<email>ben@example.com<\/email>\s*<\/author>/
expect(contents).to match /<author>\s*<name>Ben<\/name>\s*<email>ben@example.com<\/email>\s*<uri>http:\/\/ben.balter.com<\/uri>\s*<\/author>/
end

it "supports post author name as a string" do
Expand Down

0 comments on commit 7c83620

Please sign in to comment.