annotation
- I wanted to see a page on a local machine made by Jekyll using the
gem "jekyll-remote-theme" - So I ran
bundle exec jekyll serve - But a blank page appeared.
What i want to achieve
- To see the local computer page made by Jekyll using the
gem "jekyll-remote-theme" .
I am trying to create a blog on GitHub pages with Jekyll and Minimal Mistakes. Before I push the changes, I would like to check if everything is ok with the pages.
Environment
- Windows 8.1 64bit
- ruby 2.4.3p205 (version 2017-12-14 version 61247) [x64-mingw32]
- Jekyll 3.6.2
What I've done
bundle exec jekyll new . --force- Installed theme with GitHub Pages Method
bundle exec jekyll serve
What really happened
I had an error related to libcurl.dll . Here is a post on Powershell.
Dependency Error: Yikes! It looks like you don't have jekyll-remote-theme or o ne of its dependencies. To use Jekyll as currently configured, you need to install this gem. Full error message from Ruby: “Could n ot open libcurl library: (illegal characters). Failed to open libr ary 'libcurl.dll': (illegal characters). Failed to open lib curl.so.4 'library: ( illegal characters). The library libcurl.so.4.dll could not be opened:: (illegal characters) "If you encounter problems, you can find useful resources at https://jekyllrb.com/help/ !
I followed the instructions on the GitHub Pages Dependencies Missing · Issue # 17 · benbalter / jekyll-remote-theme , and the problem was resolved.
Then another error appeared with bundle exec jekyll serve . The page created locally is blank. http://127.0.0.1-00-00000/ does not show anything.
PS E:\workspace\mysite\dixhom.imtqy.com> bundle exec jekyll serve Configuration file: E:/workspace/mysite/dixhom.imtqy.com/_config.yml Source: E:/workspace/mysite/dixhom.imtqy.com Destination: E:/workspace/mysite/dixhom.imtqy.com/_site Incremental build: disabled. Enable with --incremental Generating... Remote Theme: Using theme mmistakes/minimal-mistakes Build Warning: Layout 'single' requested in _posts/2018-02-06-welcome-to-jekyll.markdown does not exist. Build Warning: Layout 'default' requested in 404.html does not exist. Build Warning: Layout 'page' requested in about.md.bak does not exist. Build Warning: Layout 'home' requested in index.html does not exist. Build Warning: Layout 'home' requested in index.md.bak does not exist. done in 5.423 seconds. Auto-regeneration: enabled for 'E:/workspace/mysite/dixhom.imtqy.com' Server address: http://127.0.0.1:4000/ Server running... press ctrl-c to stop.
It seems that jekyll not able to read the layout files. Also, the _layouts directory _layouts not in the directory where I did bundle exec jekyll new . But by default , what is in the _layouts directory _layouts packed into a theme , so it's okay not to see the directory. So I just copied _layouts from the minimal GitHub repo errors to the local directory as a workaround.
Then another error was raised.
PS E:\workspace\mysite\dixhom.imtqy.com> bundle exec jekyll serve Configuration file: E:/workspace/mysite/dixhom.imtqy.com/_config.yml Source: E:/workspace/mysite/dixhom.imtqy.com Destination: E:/workspace/mysite/dixhom.imtqy.com/_site Incremental build: disabled. Enable with --incremental Generating... Remote Theme: Using theme mmistakes/minimal-mistakes Liquid Exception: Could not locate the included file 'sidebar.html' in any of ["E:/workspace/mysite/dixhom.imtqy.com/_ includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site sourc e. in /_layouts/single.html jekyll 3.6.2 | Error: Could not locate the included file 'sidebar.html' in any of ["E:/workspace/mysite/dixhom.github.i o/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site so urce.
I could just copy _includes in the same way, but I believe that the essence of the problem is that jekyll cannot read the necessary files, for example, using the GitHub repository .
Strange, when I push local changes in GitHub, GitHub Pages shows the page that displays correctly . By the way, the repo is https://github.com/Dixhom/dixhom.imtqy.com
I suspected that jekyll-remote-theme did not work in the local environment, so I googled "jekyll remote theme serve", which did not help.
Google keywords such as "deleted Build Warning topic: layout does not exist." not very helpful.
How can I solve this problem?