From b0a8b934d2d4d6bb02102a3916d3c3f8b8538a74 Mon Sep 17 00:00:00 2001 From: Panos Sakkos Date: Sun, 1 Nov 2015 02:34:29 +0100 Subject: [PATCH] Updated documentation and newpost script .markup was deprecated by jekyll and all the post files have to have an md file ending. --- _posts/2015-06-19-writing-posts.md | 4 ++-- scripts/newpost | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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---") }