aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-09-21 14:44:38 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-09-21 14:44:38 -0700
commit6458fe2de26e181178cf47c026ce989eed815dd1 (patch)
tree81198e09d2504d2aeaecbb4b065ecd958b801957 /pyblog
parent61f9afbdfb6209a98eabdfff1285bce87654ec2e (diff)
downloadmy_new_personal_website-6458fe2de26e181178cf47c026ce989eed815dd1.tar.xz
my_new_personal_website-6458fe2de26e181178cf47c026ce989eed815dd1.zip
pyblog: date-display => date_display, and update posts
Looks slightly more professional.
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyblog b/pyblog
index 4217be75..c32464e2 100755
--- a/pyblog
+++ b/pyblog
@@ -837,7 +837,7 @@ def new_post(title):
newpost.write("---\n")
newpost.write('title: "%s"\n' % title)
newpost.write("date: %s\n" % iso_date)
- newpost.write("date-display: %s\n" % display_date)
+ newpost.write("date_display: %s\n" % display_date)
newpost.write("---\n")
sys.stderr.write("New post created in:\n")
print(fullpath)
@@ -892,8 +892,8 @@ def touch(filename):
whatchanged.write("-%s+%s\n" % (line, updated_line))
continue
- if line.startswith("date-display: "):
- updated_line = "date-display: %s\n" % display_date
+ if line.startswith("date_display: "):
+ updated_line = "date_display: %s\n" % display_date
sys.stdout.write(updated_line)
whatchanged.write("-%s+%s\n" % (line, updated_line))
continue