re-add rss feeds
This commit is contained in:
20
app/templates/threads/thread.atom
Normal file
20
app/templates/threads/thread.atom
Normal file
@@ -0,0 +1,20 @@
|
||||
{% from 'common/macros.html' import rss_html_content %}
|
||||
{%- extends 'base.atom' -%}
|
||||
{%- block title -%}replies to {{thread.title}}{%- endblock -%}
|
||||
{%- block canonical_link -%}{{ url_for('threads.thread_by_id', thread_id=thread.id, _external=true) }}{%- endblock -%}
|
||||
{%- block content -%}
|
||||
{%- for post in posts -%}
|
||||
{%- set post_url = get_post_url(post.id, _anchor=true, external=true) -%}
|
||||
<entry>
|
||||
<title>Re: {{ thread.title | escape }}</title>
|
||||
<link href="{{ post_url }}"/>
|
||||
<id>{{ post_url }}</id>
|
||||
<updated>{{ post.edited_at | iso8601 }}</updated>
|
||||
{{ rss_html_content(post.content_rss) }}
|
||||
<author>
|
||||
<name>{{ post.display_name | escape }} @{{ post.username }}</name>
|
||||
<uri>{{ url_for('users.user_page', username=post.username, _external=true) }}</uri>
|
||||
</author>
|
||||
</entry>
|
||||
{%- endfor -%}
|
||||
{%- endblock -%}
|
||||
Reference in New Issue
Block a user