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 Creating Pages

Adrianne Padua
Adrianne Padua
7,506 Points

Is "layout: page" required on front matter?

I was watching the video and I noticed that only the title and the permalink were only included in the front matter for the new pages (contact.md and resources.md). When I viewed it on my site on my computer, the HTML and styling did not carry over. Then I noticed that about.md has "layout: page" block on its front matter and I added those on my contact.md and resources.md and that fixed the problem.

So, I'm just wondering if "layout:page" is required for every page I make or do I just follow what the video says? I'm confused.

2 Answers

Jose Galan
Jose Galan
2,414 Points

Yes. it is. otherwise it won't know how to display the page.

No. Once you define the default values for page in config.yml. After that it is not necessary.