aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-06-10 00:26:35 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-06-10 00:26:35 -0700
commit392e2293e49fd9c7a96afa16e5dbcc749dd736ca (patch)
tree00b46705a90b93e89b4a3882499791267906e648
parentdc0ed1fc9b58427fc4f8be7730e1923d493397e8 (diff)
downloadmy_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-xpyblog3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyblog b/pyblog
index 201f18c3..f59ddddf 100755
--- a/pyblog
+++ b/pyblog
@@ -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")