Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,980 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 90,980 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
---