I use rake new_post["title"] to generate a new markdown file in _post dir, but I do not want to publish this post before I finished it. How can I do this?
I use rake new_post[title] to generate a new markdown file in _post dir, but
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add
published: falseto the metadata at the top of your markdown file.Some older versions of Octopress will still display the posts in preview mode. But when you generate and deploy the site, the posts with
published: falsewill not be published.