2012-05-14 21:06:34 -07:00
<rss version= "2.0" xmlns:atom= "http://www.w3.org/2005/Atom" >
2012-04-13 20:30:23 -07:00
<channel >
2012-06-05 18:15:33 -07:00
{% if request.blog_user %}
2012-06-05 20:15:28 -07:00
{% 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 == '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 %}
2012-06-05 18:15:33 -07:00
{% else %}
<atom:link href= "https://snipt.net{{ request.get_full_path }}" rel= "self" type= "application/rss+xml" />
<description > {% if public and not public_user %}Public snipts{% else %}Snipts by {{ user.username }}{% endif %}{% if tag %} tagged with "{{ tag }}"{% endif %}</description>
<title > / {% if public and not public_user %}public{% else %}{{ user.username }}{% endif %}{% if tag %} / {{ tag }}{% endif %} - Snipt</title>
<link > https://snipt.net{{ request.path }}</link>
{% endif %}
{% for snipt in snipts %}
2012-04-13 20:30:23 -07:00
<item >
<title > {{ snipt.title }}</title>
2012-05-14 21:02:53 -07:00
<link > {{ snipt.get_full_absolute_url }}</link>
2012-05-15 11:58:59 -07:00
{% if snipt.user.username == 'blog' %}
2012-05-15 12:04:20 -07:00
<description > <![CDATA[{{ snipt.stylized|safe }}]]> </description>
2012-05-15 11:58:59 -07:00
{% else %}
<description > <![CDATA[{{ snipt.code }}]]> </description>
{% endif %}
2012-05-14 21:02:53 -07:00
<pubDate > {{ snipt.created|date:"r" }}</pubDate>
2012-05-14 21:08:07 -07:00
<guid isPermaLink= "false" > snipt-net-{{ snipt.id }}</guid>
2012-04-13 20:30:23 -07:00
</item> {% endfor %}
</channel>
</rss>