aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2016-01-08 21:20:31 -0800
committerZhiming Wang <zmwangx@gmail.com>2016-01-08 21:20:31 -0800
commit01058959e1e90cac44ea091c4da428870e78865f (patch)
tree237aa38796e1d11f003ebdacc92a59761304e70a /pyblog
parentf818d439160c8f06add42dd10cfcdbddc71b04d7 (diff)
downloadmy_new_personal_website-01058959e1e90cac44ea091c4da428870e78865f.tar.xz
my_new_personal_website-01058959e1e90cac44ea091c4da428870e78865f.zip
pyblog: new_post: Write a blank line after the YAML block
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyblog b/pyblog
index 8438bc71..31b72c91 100755
--- a/pyblog
+++ b/pyblog
@@ -905,7 +905,7 @@ def new_post(title):
newpost.write('title: "%s"\n' % title)
newpost.write("date: %s\n" % iso_date)
newpost.write("date_display: %s\n" % display_date)
- newpost.write("---\n")
+ newpost.write("---\n\n")
sys.stderr.write("New post created in:\n")
print(fullpath)
edit_post_with_editor(fullpath)