diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-06-10 00:26:35 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-06-10 00:26:35 -0700 |
commit | 392e2293e49fd9c7a96afa16e5dbcc749dd736ca (patch) | |
tree | 00b46705a90b93e89b4a3882499791267906e648 | |
parent | dc0ed1fc9b58427fc4f8be7730e1923d493397e8 (diff) | |
download | my_new_personal_website-392e2293e49fd9c7a96afa16e5dbcc749dd736ca.tar.xz my_new_personal_website-392e2293e49fd9c7a96afa16e5dbcc749dd736ca.zip |
pyblog: fix typo in atom feed subtitle
Subtitle was added along with RSS, but I accidentally used <title>
instead of <subtitle> for the tag.
Diffstat (limited to '')
-rwxr-xr-x | pyblog | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -473,7 +473,8 @@ def generate_index_and_feed(): feed.title_text = BLOG_TITLE feed.title = ET.fromstring("<title>{title}</title>".format(title=BLOG_TITLE)) feed.subtitle_text = BLOG_DESCRIPTION - feed.subtitle = ET.fromstring("<title>{subtitle}</title>".format(subtitle=BLOG_DESCRIPTION)) + feed.subtitle = ET.fromstring("<subtitle>{subtitle}</subtitle>" + .format(subtitle=BLOG_DESCRIPTION)) # initialize rss feed rss = RssFeed() rss.rssurl = urllib.parse.urljoin(BLOG_HOME, "rss.xml") |