Validate atom feed

This commit is contained in:
Michael Rose 2013-06-27 17:11:23 -04:00
parent dceaae82a3
commit 58533e187e

View file

@ -20,11 +20,13 @@ layout: none
<title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
<link rel="alternate" type="text/html" href="{{ site.url }}{{ post.url }}" />
<id>{{ site.url }}{{ post.id }}</id>
{% if post.modified %}<updated>{{ post.modified | to_xmlschema }}</updated>
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.modified %}<updated>{{ post.modified | to_xmlschema }}</updated>{% endif %}
{% else %}<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.date | date_to_xmlschema }}</updated>{% endif %}
<author>
<name>{{ site.owner.name }}</name>
<uri>{{ site.url }}/</uri>
<uri>{{ site.url }}</uri>
<email>{{ site.owner.email }}</email>
</author>
<content type="html">{{ post.content | xml_escape }}