check author node before assigned

This commit is contained in:
hillerliao
2022-05-15 21:29:22 +08:00
parent e6f43b2ae3
commit 32ede981ed
2 changed files with 9 additions and 10 deletions

View File

@@ -14,6 +14,7 @@
<entry>
<id>{{item.link}}</id>
<title><![CDATA[{{item.title|safe}}]]></title>
<author><![CDATA[{{item.author|safe}}]]></author>
<published>{{item.pubDate|default(now)}}</published>
<updated>{{item.pubDate|default(now)}}</updated>
<link href="{{item.link}}"/>