Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Warning: Layout 'home' requested in index.markdown does not exist. #9

Open
mgifford opened this issue Mar 29, 2020 · 2 comments

Comments

@mgifford
Copy link
Contributor

mgifford commented Mar 29, 2020

I'm starting with the simple example here https://jekyllrb.com/docs/

This is different than the project I've started on GitHub with GitHub Pages. Just trying to run this theme over the default example.

I get this error:
Build Warning: Layout 'home' requested in index.markdown does not exist.

Now I'm confused about the .md vs .markdown but the index.markdown exists. I comment out layout: home

and the error goes away, but I just get a white screen now.

It's been over a year since I've done anything with Jekyll but I've built a site with it before so I'm not totally fresh.

@abhn
Copy link
Owner

abhn commented Mar 29, 2020

Thanks again for an interesting catch. My apologies for not replying sooner as I had some Sunday evening calls to make.

When we change the theme in _config.yml, we tell Jekyll to not use its default theme and use the one we supply.

Unfortunately, the default index.markdown file in the root has layout: home, but Elementary theme only supplies two page types; post and page. I changed the layout: home to layout: page and it worked fine.

Which lead me to discover another problem. There's no index page. The one in ./elementary directory gets excluded. So we'd also need to manually copy that file to the root of the folder. I'll need to see if there's a more elegant way of making that work.

@mgifford
Copy link
Contributor Author

Thanks.. It's mostly about documentation. If you start from the default install then there should be instructions to move past it. Thanks for explaining it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants