Reputation: 3977
I am trying to use GitHub Pages with Jekyll. I have created a repo named:myusername.github.io
where myusername
is exactly the same as my github username. I am using Jekyll to create the site. I have it setup locally on my machine and have tested the page using:
jekyll serve
There are no issues running the site locally. I have pushed the Jekyll site to my repo. However, when I go to myusername.github.io
I just see a blank white page. What am I doing wrong here? I have tested to see if GitHub Pages is working by adding an index.html
file to the repo and this will display correctly. However for some reason the Jekyll site is not displaying at all. What am I doing wrong here?
EDIT:
My process to create the page was like so:
jekyll new mysite
cd mysite
git init
git add .
git remote add origin https://github.com/myusername/myusername.github.io.git
git push -u origin master
repo looks like this:
Upvotes: 3
Views: 1922
Reputation: 2881
While your site is properly setup to use jekyll
, it's probably 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
Upvotes: 1