Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 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 91,253 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
---