Github pages display a blank page

I just clicked the empty Jekyll website on my github pages. https://louissafety.imtqy.com/ However, instead of breaking the jekyll page by default, it displays a blank page. What could be wrong.

It works fine on the local machine.

Github page: https://github.com/louissafety

+2
source share
2 answers

As long as your site is properly configured to use jekyll , it uses ruby ​​stones that are not available for github-pages .

The only lines you should have in your Gemfile are: source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins

Any other gems or items may not be available on the Github pages, resulting in jeykll biuld failing.

+1
source

If you try to use a custom theme for which Gem is not whitelisted by GitHub, you may need to declare the custom theme in your _config.yml file as remote_theme: github_user/repo and remove it from the Gemfile .

Here is my Gemfile :

 source "https://rubygems.org" gem 'github-pages', group: :jekyll_plugins 

And the interesting part of my _config.yml :

 remote_theme: pawamoy/jekyll-readthedocs 

To create locally, just run bundle exec jekyll serve .

Learn more about the GitHub help page for Jekyll themes .

0
source

Source: https://habr.com/ru/post/1275293/


All Articles