Closed kyao233 closed 6 years ago
@kyao4, this error does not seem to be related to the slate template.
It looks like you have a line in your 'about.md' file similar to:
{% include icon-github.html %}
so jekyll is looking for an 'icon-github.html' file in your "/_includes" folder, which doesn't exist. If you find the above line of code and take it out, you should stop seeing that error. For more on how the include tag works check out the jekyll docs.
The slate template does not have any reference to this file, so it's probably from something else you're using or trying to do.
Hope that helps.
@asbhat Oh, Your answer is indeed helpful.
I used command
jekyll new myblog
to create my blog.
and then edited _config.yml and Gemfile accordingly.
I think what I should've done is to clone this repo and customize it by myself?
@kyao4, you can certainly clone the repo, but that's probably not what you want if your goal is to use GitHub Pages. I would recommend you first go through this guide.
Original comment: ah, I see what you did now. Yes I can recreate this error.
Are you on macOS? If so, do
$ open $(bundle show minima)
This will open a finder showing you all the files within the minima gem (the default theme). Navigate to the "_includes" folder you see. You can copy all of those files to an "_includes" folder in your "myblog" folder. There's more information on handling theme changes here: https://jekyllrb.com/docs/themes/
Taking a step back, I would suggest you first go through this guide that jekyll recommends: http://jmcglone.com/guides/github-pages/
$ open $(bundle show slate)
and copy the 'default.html' file from that "_layouts" folder into your "myblog/_layouts" folder$ bundle exec jekyll serve
should work$ PAGES_REPO_NWO=pages-themes/slate bundle exec jekyll serve
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
HI, I configured my _config.yml and Gemfile as directed, but when I run
bundle exec jekyll serve
I got these error?
Can someone explain to me why this is happening?