-
Notifications
You must be signed in to change notification settings - Fork 19
Post layout isn't working #205
Comments
Can you post a link to your repo? |
Hi Bud, https://github.com/PaulTuraew/turaew_io_jekyll_blog Thanks in advance for the help! |
Hi Paul, Also, have a look at your layout files. Your post layout doesn't have everything it needs to render a page, yet isn't referencing a default layout that has that either. You are calling a CSS file at the top of the page that isn't doing anything because it's not in the . And it looks like you're using your header.html include the way you should be using a default template (because you have your closing body tags in their too). Here are some examples from the templates that Jekyll installs for you when you make a new instance: This is the default layout that has a lot of the HTML for your page, but importantly a
And this is a post template. Everything in this template gets inserted by Jekyll into the
I'd suggest doing a fresh install of Jekyll, separate from your current site and having a look at the templates they use there. Hope that helps! |
Hi Bud, Thanks for the info, I looked into it, compared the templates and got the post layout to function correctly. Thank you again! Paul |
Glad to hear that! On Wed, Dec 3, 2014, 11:28 AM Paul notifications@github.com wrote:
|
I had a similar problem, but found out the layout defined in YAML front matter had a wrong spelling! |
I followed all the directions on creating a .md post (e.g. 2011-12-31-new-years-eve-is-awesome.md), putting it in the _posts folder and included the YAML front matter and it still won't recognize the layout. I am currently running it on my local server.
When I look in my "site" folder and actually see the HTML code for the post, Jekyll is putting the front matter in the content
elements.
Any suggestions? Thank you!
The text was updated successfully, but these errors were encountered: