Skip to content

Commit

Permalink
use <link></link> instead of <link /> in the rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Feb 12, 2013
1 parent 6732345 commit 9ec94db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions feed/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel>
<title>{{ site.author.name }}</title>
<link href="{{ site.production_url }}/feed/" rel="self" />
<link href="{{ site.production_url }}"/>
<atom:link href="{{ site.production_url }}/feed/" rel="self" type="application/rss+xml" />
<link>{{ site.production_url }}</link>
<lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
<webMaster>{{ site.author.email }}</webMaster>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link href="{{ site.production_url }}{{ post.url }}"/>
<link>{{ site.production_url }}{{ post.url }}</link>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
<author>{% for id in post.author %}{% assign author = site.authors[id] %}{{ author.name }}{% if forloop.last == false %}
and {% endif %}{% endfor %}</author>
Expand Down

0 comments on commit 9ec94db

Please sign in to comment.