summaryrefslogtreecommitdiff
path: root/templates/themes/catalog/index.rss
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-01-12 14:17:20 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-01-12 14:17:20 +1000
commit57cf30cf7f068b71dbacca33ccc49965de8e71d8 (patch)
treeb974d3555158a10fd11136b50eb1afffa1761fff /templates/themes/catalog/index.rss
parent353ef1ddee8dbb34cd58b12546f7dc62d30a2954 (diff)
Make index.rss catalog rss use full url linking instead of relative links
Diffstat (limited to 'templates/themes/catalog/index.rss')
-rw-r--r--templates/themes/catalog/index.rss8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/themes/catalog/index.rss b/templates/themes/catalog/index.rss
index e6576ffc..1d925398 100644
--- a/templates/themes/catalog/index.rss
+++ b/templates/themes/catalog/index.rss
@@ -2,15 +2,15 @@
<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>{{ config.root }}{{ board.uri }}/</link>
+ <link>{{ settings.base_url }}{{ config.root }}{{ board.uri }}/</link>
<description>Live feed of new threads on the board /{{ board.uri }}/ - {{ board.title|e }}.</description>
<atom:link href="{{ config.root }}{{ 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>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</link>
- <guid>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</guid>
- <comments>{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</comments>
+ <link>{{ settings.base_url }}{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</link>
+ <guid>{{ settings.base_url }}{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</guid>
+ <comments>{{ settings.base_url }}{{ config.root }}{{ board.uri }}/res/{{ post.id }}.html</comments>
<pubDate>{{ post.pubdate }}</pubDate>
<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>