Drafts in Octopress

Let’s say you start a new post in Octopress

Terminal
1
$ rake new_post["Drafts in Octopress"]

Next time you generate and deploy the post will be published. To change that, edit the file like so, adding published: false to the YAML header:

2013-10-05-drafts-in-octopress.markdown
1
2
3
4
5
6
7
8
---
layout: post
title: "Drafts in Octopress"
date: 2013-10-05 10:36
comments: true
categories:
published: false
---

When you’re previewing with rake preview, you will still to see the drafts that aren’t published.

Comments