From 58533e187ebac5b9b8c4c49b8f999475a0889ca2 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 27 Jun 2013 17:11:23 -0400 Subject: [PATCH] Validate atom feed --- feed.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/feed.xml b/feed.xml index 62118a3..c218cf5 100644 --- a/feed.xml +++ b/feed.xml @@ -20,11 +20,13 @@ layout: none <![CDATA[{{ post.title | cdata_escape }}]]> {{ site.url }}{{ post.id }} + {% if post.modified %}{{ post.modified | to_xmlschema }} {{ post.date | date_to_xmlschema }} - {% if post.modified %}{{ post.modified | to_xmlschema }}{% endif %} + {% else %}{{ post.date | date_to_xmlschema }} + {{ post.date | date_to_xmlschema }}{% endif %} {{ site.owner.name }} - {{ site.url }}/ + {{ site.url }} {{ site.owner.email }} {{ post.content | xml_escape }}