summaryrefslogtreecommitdiff
path: root/src/pyssg/rss.py
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-05-25 00:33:12 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-05-25 00:33:12 -0600
commite667ddc7ee47d0897ffc5b569aadeafaa829d6a4 (patch)
tree6de6110ddce49a4873d31f0b0951c91efefe8d67 /src/pyssg/rss.py
parent09b96aff91012c1fb61275fa5da71593ee268b13 (diff)
add content:encoded tag in rss and update readme
Diffstat (limited to 'src/pyssg/rss.py')
-rw-r--r--src/pyssg/rss.py3
1 files changed, 2 insertions, 1 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