Skip to content

Commit

Permalink
Include thumbnail in atom feed if set.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarib committed Apr 22, 2015
1 parent 29b7997 commit 956a85f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ layout: null
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>

<link rel="alternate" type="text/html" href="{{ site.url }}{{ site.baseurl }}{{ post.url | remove_first:'/' }}"/>

{% if post.thumbnail %}
<link rel="thumbnail" type="image/{{ post.thumbnail | split:"." | last}}" href="{{ post.thumbnail }}"/>
{% endif %}


<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<summary>{{ post.excerpt | strip_html | xml_escape }}</summary>
Expand Down

0 comments on commit 956a85f

Please sign in to comment.