<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        {% if request.blog_user.profile.is_pro %}
            <atom:link href="{% if request.blog_user.profile.get_primary_blog_domain and request.blog_user.profile.blog_domain != '' %}http://{{ request.blog_user.profile.blog_domain }}/?rss{% else %}https://{{ request.blog_user.username }}.snipt.net/?rss{% endif %}" rel="self" type="application/rss+xml" />
            <description>{% firstof request.blog_user.profile.blog_title request.blog_user.username %}</description>
            <title>{% firstof request.blog_user.profile.blog_title request.blog_user.username %}</title>
            <link>{% if request.blog_user.profile.get_primary_blog_domain %}http://{{ request.blog_user.profile.blog_domain }}/?rss{% else %}https://{{ request.blog_user.username }}.snipt.net/?rss{% endif %}</link>
        {% else %}
            <atom:link href="https://{{ request.blog_user.username }}.snipt.net/?rss" rel="self" type="application/rss+xml" />
            <description>{{ request.blog_user.username }}</description>
            <title>{{ request.blog_user.username }}</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>
                <tags>{% for tag in snipt.tags.all %}{{ tag }}{% if not forloop.last %}, {% endif %}{% endfor %}</tags>
                <pubDate>{{ snipt.created|date:"r" }}</pubDate>
                <guid isPermaLink="false">snipt-net-{{ snipt.id }}</guid>
            </item>
        {% endfor %}
    </channel>
</rss>
