40 lines
2.2 KiB
XML
40 lines
2.2 KiB
XML
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
{% if request.blog_user.username == 'nick' %}
|
|
<atom:link href="http://nicksergeant.com/?rss" rel="self" type="application/rss+xml" />
|
|
<description>Nick Sergeant</description>
|
|
<title>Nick Sergeant</title>
|
|
<link>http://nicksergeant.com/?rss</link>
|
|
{% elif request.blog_user.username == 'rochacbruno' %}
|
|
<atom:link href="http://rochacbruno.com.br/?rss" rel="self" type="application/rss+xml" />
|
|
<description>Bruno Cezar Rocha</description>
|
|
<title>Bruno Cezar Rocha</title>
|
|
<link>http://rochacbruno.com.br/?rss</link>
|
|
{% elif request.blog_user.username == 'joshhudnall' %}
|
|
<atom:link href="http://snipt.joshhudnall.com/?rss" rel="self" type="application/rss+xml" />
|
|
<description>Josh Hudnall</description>
|
|
<title>Josh Hudnall</title>
|
|
<link>http://snipt.joshhudnall.com/?rss</link>
|
|
{% elif request.blog_user.username == 'blog' %}
|
|
<atom:link href="https://blog.snipt.net/?rss" rel="self" type="application/rss+xml" />
|
|
<description>Snipt Blog</description>
|
|
<title>Snipt Blog</title>
|
|
<link>https://blog.snipt.net/?rss</link>
|
|
{% else %}
|
|
<atom:link href="https://{{ request.blog_user.username }}.snipt.net/?rss" rel="self" type="application/rss+xml" />
|
|
<description>{% if request.blog_user.username == 'nick' %}Nick Sergeant{% else %}{{ request.blog_user.username }}{% endif %}</description>
|
|
<title>{% if request.blog_user.username == 'nick' %}Nick Sergeant{% else %}{{ request.blog_user.username }}{% endif %}</title>
|
|
<link>https://{{ request.blog_user.username }}.snipt.net/?rss</link>
|
|
{% endif %}
|
|
{% for snipt in snipts %}
|
|
<item>
|
|
<title>{{ snipt.title }}</title>
|
|
<link>{{ snipt.get_full_absolute_url }}</link>
|
|
<description><![CDATA[{{ snipt.stylized|safe }}]]></description>
|
|
<pubDate>{{ snipt.created|date:"r" }}</pubDate>
|
|
<guid isPermaLink="false">snipt-net-{{ snipt.id }}</guid>
|
|
</item>
|
|
{% endfor %}
|
|
</channel>
|
|
</rss>
|