diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-09-21 14:44:38 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-09-21 14:44:38 -0700 |
commit | 6458fe2de26e181178cf47c026ce989eed815dd1 (patch) | |
tree | 81198e09d2504d2aeaecbb4b065ecd958b801957 /pyblog | |
parent | 61f9afbdfb6209a98eabdfff1285bce87654ec2e (diff) | |
download | my_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-x | pyblog | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |