Skip to content

Commit

Permalink
fix for atom of posts with external urls
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Dec 31, 2013
1 parent 425a72c commit bc3e361
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ layout: nil

{% for post in site.posts %}
<entry>
<id>http://geemus.com{{ post.id }}</id>
<title>{{ post.title }}</title>
<link href="http://geemus.com{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>http://geemus.com{{ post.id }}</id>
{% if post.external_url == nil %}
<content type="html">{{ post.content | xml_escape }}</content>
<link href="http://geemus.com{{ post.url }}"/>
{% else %}
<link href="{{ post.external_url }}"/>
{% endif %}
</entry>
{% endfor %}

Expand Down

0 comments on commit bc3e361

Please sign in to comment.