HTML Build a Blog with Jekyll and GitHub Pages Building and Customizing the Blog Working with Drafts

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 83,234 Points

Drafts no longer supported in Jekyll?

I've been trying to follow along with the video but i don't think drafts are supported anymore the way it works in the video.

This is my config.yml file

# Site settings
title: WebConfs - A blog about web conferences
email: coolwebconfs@gmail.com
description: A blog about my favorite web conferences.
url: "http://webconfs.me" # the base hostname & protocol for your site
twitter_username: jonniegrieve

# Build settings
markdown: kramdown
permalink: /:title

#Default Setting
defaults:
  - 
    scope:
      path: "" # an empty string here means all files in the project
      type: "posts" # previously `post` in Jekyll 2.2.
    values:       
      layout: "post"
      category: conferences 
      author: Jonnie Grieve
 -  
    scope:
      path: "" # an empty string here means all files in the project
      type: "pages" # previously `post` in Jekyll 2.2.
    values:
      layout: "page"
 -
    scope:
      path: "" # an empty string here means all files in the project
      type: "drafts" # previously `post` in Jekyll 2.2.
    values:
      author: Jonnie
      category: conferences
      layout: "post"    

But I keep getting this from Git Shell

Did not find expected key while parsing a block mapping at line 2 column 1

Jekyll v3.0.1

Help. :)

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 83,234 Points

Oh well I seem to have fixed by adding blocking to the file.

#Site settings
---
title: WebConfs A blog about web conferences
email: coolwebconfs@gmail.com
description: A blog about my favorite web conferences.
url: "http://webconfs.me"
# the base hostname & protocol for your site
twitter_username: jonniegrieve
---