diff --git a/_posts/2015-06-19-writing-posts.md b/_posts/2015-06-19-writing-posts.md index ecd635f..6c17b1b 100644 --- a/_posts/2015-06-19-writing-posts.md +++ b/_posts/2015-06-19-writing-posts.md @@ -13,12 +13,12 @@ cd ./scripts/newpost hello-world -A a new post template with name YYYY-MM-DD-hello-world.markup will be created under ./_posts, with the current date. +A a new post template with name YYYY-MM-DD-hello-world.md will be created under ./_posts, with the current date. In the created post, just replace the Title, Category and tags and you can start writing your post in markdown right bellow the end of the post header. -Every file with the format YYYY-MM-DD-post-title.markup will be processed as a +Every file with the format YYYY-MM-DD-post-title.md will be processed as a post, with publication date YYYY-MM-DD. The content starts with: diff --git a/scripts/newpost b/scripts/newpost index 2804100..6816f7d 100755 --- a/scripts/newpost +++ b/scripts/newpost @@ -6,7 +6,7 @@ POSTS_DIR = '_posts/' post = ARGV[0] -File.open(POSTS_DIR + Date.today.strftime("%Y-%m-%d-") + post + '.markup', 'w') {|f| f.write( +File.open(POSTS_DIR + Date.today.strftime("%Y-%m-%d-") + post + '.md', 'w') {|f| f.write( "---\nlayout: post\nsection-type: post\ntitle: \ncategory: <Category>\ntags: [ '<tag1>', '<tag2>' ]\n---") }