Search code examples
githubcommand-linejekyllgithub-pagesgit-bash

Git Bash Jekyll site could not be built


I'm very new to github pages and jekyll but I'm trying to start up my own personal website using them and every time I try to execute '$ bundle exec jekyll serve' it says 'Configuration File: none' even though there's a _config.yml file in the local directory. Along with this I get several other errors keeping me from reviewing my work (posted below). Any suggestions/solutions? myWebsite is the parent folder and jekyllRepo is the jekyll Repository that the _config.yml file and several others are in.

$ bundle exec jekyll serve
Configuration file: none
Source: C:/Users/Owner/myWebsite
Destination: C:/Users/Owner/myWebsite/_site
Incremental build: disabled. Enable with --incremental
  Generating...
 Build Warning: Layout 'post' requested in jekyllRepo/_posts/2019-03-03-welcome-to-jekyll.markdown does not exist.
GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
GitHub Metadata: Error processing value 'title':
Liquid Exception: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository. in /_layouts/default.html
         ERROR: YOUR SITE COULD NOT BE BUILT:
                ------------------------------------
                No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository.

Solution

  • Since you have not provided a link to your repository, I'll make some assumptions based on your terminal output. Therefore, this is going to be a trial and error answer.

    You may have a Gemfile with gem 'github-pages', group: :jekyll_plugins or it may contain

    group :jekyll_plugins do
      gem 'github-pages'
    end
    

    Either ways, move github-pages out of the :jekyll_plugins group. That is, you should have just a bare listing:

    source 'https://rubygems.org'
    
    gem 'github-pages'