Skip to content

Commit

Permalink
Update drafts directory
Browse files Browse the repository at this point in the history
  • Loading branch information
crodjer committed Apr 5, 2012
1 parent 88ca956 commit 0f6874a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/newpost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ def slugify(title)
slug = slugify(title)
prefix = Time.new.strftime("%Y-%m-%d")
filename = "#{prefix}-#{slug}.mkd"
path = File.join(SITE_DIR, "/_posts/#{filename}")
path = File.join(SITE_DIR, "/drafts/#{filename}")

header = <<-END
---
title: "#{title}"
slug: "#{slug}"
tags: tag 1, tag 2
category: hacking
author: crodjer
---
Expand Down

0 comments on commit 0f6874a

Please sign in to comment.