The version of vichan running on lainchan.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1.2KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  3. <channel>
  4. <title>/{{ board.uri }}/ - {{ board.title|e }}</title>
  5. <link>{{ config.root }}{{ board.uri }}/</link>
  6. <description>Live feed of new threads on the board /{{ board.uri }}/ - {{ board.title|e }}.</description>
  7. <atom:link href="{{ config.root }}{{ board.uri }}/index.rss" rel="self" type="application/rss+xml"/>
  8. {% for post in recent_posts %}
  9. <item>
  10. <title>{% if post.subject %}{{ post.subject|e }}{% else %}{{ post.body_nomarkup[:256]|remove_modifiers|e }}{% endif %}</title>
  11. <link>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</link>
  12. <guid>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</guid>
  13. <comments>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</comments>
  14. <pubDate>{{ post.pubdate }}</pubDate>
  15. <description><![CDATA[ <a href='{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html' target=_blank><img style='float:left;margin:8px' border=0 src='{% if not config.uri_thumb %}{{ config.root }}{% endif %}{{ post.file }}'></a> {{ post.body }} ]]></description>
  16. </item>
  17. {% endfor %}
  18. </channel>
  19. </rss>