diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pyssg/rss.py | 3 | ||||
-rw-r--r-- | src/pyssg/template.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/pyssg/rss.py b/src/pyssg/rss.py index 9cfe629..4cd4695 100644 --- a/src/pyssg/rss.py +++ b/src/pyssg/rss.py @@ -44,9 +44,10 @@ class RSSBuilder: i_f = f'{i_f} <item>\n' i_f = f'{i_f} <title>{p.title}</title>\n' i_f = f'{i_f} <link>{url}</link>\n' - i_f = f'{i_f} <description>{p.summary}</description>\n' i_f = f'{i_f} <guid isPermaLink="true">{url}</guid>\n' i_f = f'{i_f} <pubDate>{date}</pubDate>\n' + i_f = f'{i_f} <description>{p.summary}</description>\n' + i_f = f'{i_f} <content:encoded><![CDATA[{p.html}]]></content:encoded>\n' i_f = f'{i_f} </item>\n' return i_f diff --git a/src/pyssg/template.py b/src/pyssg/template.py index d62c40f..0c43f22 100644 --- a/src/pyssg/template.py +++ b/src/pyssg/template.py @@ -115,7 +115,9 @@ class Template(HF): os.chdir('rss') self.__write_template('rss.xml', ['<?xml version="1.0" encoding="UTF-8" ?>\n', - '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">\n', + '<rss version="2.0"\n', + ' xmlns:atom="http://www.w3.org/2005/Atom"\n', + ' xmlns:content="http://purl.org/rss/1.0/modules/content/">\n', ' <channel>\n', ' <title>$$TITLE</title>\n', ' <link>$$LINK</link>\n', |