1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-25 13:54:51 +01:00
vichan/templates/themes/catalog/index.rss
2016-05-06 12:40:37 +02:00

20 lines
1.2 KiB
XML

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