Remove hardcoded 8chan links in catalog RSS
This commit is contained in:
parent
aa0d92a2b4
commit
f27c26907d
@ -2,17 +2,17 @@
|
|||||||
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||||
<channel>
|
<channel>
|
||||||
<title>/{{ board.uri }}/ - {{ board.title|e }}</title>
|
<title>/{{ board.uri }}/ - {{ board.title|e }}</title>
|
||||||
<link>https://8ch.net/{{ board.uri }}/</link>
|
<link>{{ config.root }}{{ board.uri }}/</link>
|
||||||
<description>Live feed of new threads on the 8chan board /{{ board.uri }}/ - {{ board.title|e }}.</description>
|
<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"/>
|
<atom:link href="{{ config.root }}{{ board.uri }}/index.rss" rel="self" type="application/rss+xml"/>
|
||||||
{% for post in recent_posts %}
|
{% for post in recent_posts %}
|
||||||
<item>
|
<item>
|
||||||
<title>{% if post.subject %}{{ post.subject|e }}{% else %}{{ post.body_nomarkup[:256]|remove_modifiers|e }}{% endif %}</title>
|
<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>
|
<link>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</link>
|
||||||
<guid>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</guid>
|
<guid>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</guid>
|
||||||
<comments>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</comments>
|
<comments>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</comments>
|
||||||
<pubDate>{{ post.pubdate }}</pubDate>
|
<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>
|
<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>
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</channel>
|
</channel>
|
||||||
|
Loading…
Reference in New Issue
Block a user