Skip to content

Commit

Permalink
Add image enclosure with post.image metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Parisot committed Nov 26, 2018
1 parent 775c6aa commit 949f621
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
{% endif %}
{% endif %}
</summary>
{% if post.image %}
<enclosure url="{{ url + post.image) | uriencode }}" type="image" />
{% endif %}
{% for category in post.categories.toArray() %}
<category term="{{ category.name }}" scheme="{{ (url + category.path) | uriencode }}"/>
{% endfor %}
Expand Down

0 comments on commit 949f621

Please sign in to comment.