Skip to content

Commit

Permalink
Updated documentation and newpost script
Browse files Browse the repository at this point in the history
.markup was deprecated by jekyll and all the post files have to have an
md file ending.
  • Loading branch information
le4ker committed Nov 1, 2015
1 parent 07bb6ad commit b0a8b93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _posts/2015-06-19-writing-posts.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ cd <your { personal } repo>
./scripts/newpost hello-world
</pre>

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 <i>YYYY-MM-DD-post-title.markup</i> will be processed as a
Every file with the format <i>YYYY-MM-DD-post-title.md</i> will be processed as a
post, with publication date <i>YYYY-MM-DD</i>.

The content starts with:
Expand Down
2 changes: 1 addition & 1 deletion scripts/newpost
Original file line number Diff line number Diff line change
Expand Up @@ -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: <Title>\ncategory: <Category>\ntags: [ '<tag1>', '<tag2>' ]\n---")
}

Expand Down

0 comments on commit b0a8b93

Please sign in to comment.