Escape author in RSS feed

Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
Harry Chen 2021-08-03 21:42:08 +08:00
parent a20b5f5027
commit de664506e7
No known key found for this signature in database
GPG Key ID: 9F98D3E7C18D0378

View File

@ -16,7 +16,7 @@
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
{% if post.author %}<author>{{ post.author }}</author>{% endif %}
{% if post.author %}<author>{{ post.author | xml_escape }}</author>{% endif %}
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>