rss_comments.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <rss version="2.0">
  3. <channel>
  4. <title>freepost - Latest comments</title>
  5. <description></description>
  6. <link>{{ base_url }}</link>
  7. <lastBuildDate>{{ now () }}</lastBuildDate>
  8. {% for comment in comments %}
  9. {# freepost URL of this comment #}
  10. {% set freepost_url = base_url ~ url('post', hash_id=comment.postHashId) ~ '#comment-' ~ comment.hashId %}
  11. <item>
  12. <guid isPermaLink="false">{{ comment.hashId }}</guid>
  13. <title>
  14. {{ comment.postTitle }}
  15. </title>
  16. <description>
  17. <![CDATA[
  18. <p>{{ comment.text }}</p>
  19. <p>{{ comment.vote }} votes</p>
  20. ]]>
  21. </description>
  22. <link>{{ freepost_url }}</link>
  23. <freepostLink>{{ freepost_url }}</freepostLink>
  24. <pubDate>{{ comment.created }}</pubDate>
  25. <author>{{ comment.username }}</author>
  26. </item>
  27. {% endfor %}
  28. </channel>
  29. </rss>