From 6458fe2de26e181178cf47c026ce989eed815dd1 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Mon, 21 Sep 2015 14:44:38 -0700 Subject: pyblog: date-display => date_display, and update posts Looks slightly more professional. --- pyblog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyblog') 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 -- cgit v1.2.1