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 trialOgechi Ike
6,539 PointsTerminal Jekyll Serve Error
When I try to view my jekyll blog in the browser, Terminal keeps saying:
jekyll 2.5.3 | Error: (/Users/oike/travel_blog/_config.yml): mapping values are not allowed in this context at line 22 column 13
I don't know if I would have to restart the course to fix it, or what. Suggestions would be nice. Thank you for your time.
2 Answers
Kenneth Crocken
10,672 PointsHi Ogechi -
I would suspect some typo in your _config.yml, possibly where you were setting some default values. Can you post the code from your config file?
Kenneth Crocken
10,672 PointsIts hard to say what the problem maybe, Jekyll doesn't have the most robust error messages. But as a trouble shooting guide, I would check:
*The indentation. The spacing is used to denote structure. Use spaces for indentations, not tab characters. *Hyphens. Do you have them? The hyphen is used to mark a new list. *Don't paste. Delete what you have and type it out again - don't paste it.
Jonathan Chua
4,136 PointsJonathan Chua
4,136 PointsI encountered the same problem after pasting in the code to set default values in my _config.yml file. Here is the code at line 22.
layout: "post"