diff --git a/atom.xml b/atom.xml index c83467d..1b231d0 100644 --- a/atom.xml +++ b/atom.xml @@ -18,13 +18,20 @@ layout: null {% for post in site.posts limit: 10 %} - {{ post.title }} {{ site.url }}{{ post.id }} {{ post.date | date_to_xmlschema }} {{ post.content | xml_escape | truncatewords:50 }} - + {% assign post_image = post.image.path | default: post.image %} + {% if post_image %} + {% unless post_image contains "://" %} + {% assign post_image = post_image | absolute_url %} + {% endunless %} + + + {% endif %} + {% endfor %}