<?xml version="1.0" encoding="utf-8"?>
+
+{% import ipfire.accounts as accounts %}
+
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom"
<item>
<title>{{ post.title }}</title>
<link>https://blog.ipfire.org/post/{{ post.slug }}</link>
- <author>{{ post.author.email }} ({{ post.author.name }})</author>
+ {% if isinstance(post.author, accounts.Account) %}
+ <author>{{ post.author.email }} ({{ post.author.name }})</author>
+ {% else %}
+ <author>{{ post.author }}</author>
+ {% end %}
<pubDate>{{ post.published_at.strftime("%a, %d %b %Y %H:%M:%S +0200") }}</pubDate>
<guid isPermaLink="false"></guid>
<description><![CDATA[{% raw post.html %}]]></description>