Github Pages呈现空白页面 [英] Github Pages renders blank page

查看:911
本文介绍了Github Pages呈现空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是将一个空白的Jekyll网站推到了我的github页面。 https://louissafety.github.io/ 然而,并非重新发布默认的jekyll页面,它会呈现空白页。什么可能是错的。



它在本地机器上正常工作。

Github页面: https://github.com/louissafety

解决方案

当您的网站正确设置为使用 jekyll 时,它使用的是不可用于 github-pages 的宝石宝石。



只有你应该在你的 Gemfile 中有:

source'https://rubygems.org'
gem'github - 页面,组::jekyll_plugins



Github Pages可能无法使用任何其他宝石或包含,导致jeykll biuld失败


I just pushed a blank Jekyll site to my github pages. https://louissafety.github.io/ However, instead of rending the default jekyll page, it renders the blank page. What could be wrong.

It works fine on the local machine.

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

解决方案

While your site is properly setup to use jekyll, it's using ruby gems that are not available to github-pages.

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

Any other gems or includes may not be available to Github Pages, causing the jeykll biuld to fail

这篇关于Github Pages呈现空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆