Git Bash 无法构建 Jekyll 站点
Git Bash Jekyll site could not be built
我是 github 页面和 jekyll 的新手,但我正在尝试使用它们启动我自己的个人网站,每次我尝试执行“$ bundle exec jekyll serve”时,它都会说 'Configuration File: none' 即使在本地目录中有一个 _config.yml 文件。除此之外,我还遇到了其他几个错误,使我无法检查我的工作(在下面发布)。有 suggestions/solutions 吗? myWebsite 是父文件夹,jekyllRepo 是 _config.yml 文件和其他几个文件所在的 jekyll 存储库。
$ 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.
首先你应该确认你已经安装了 Jekyll 和 Bundler gem
$ jekyll -v
你应该看到
jekyll 3.8.5 -- Jekyll is a blog-aware, static site generator in Ruby
如果没有安装,请安装
$ gem install jekyll bundler
如果是安装,你只需要在网站的根目录中使用 jekyll(不是 bundle 命令)命令
$ jekyll serve
$ jekyll build
是的,我发现网站上的入门 也有点令人困惑...
由于您没有向您的存储库提供 link,我将根据您的终端输出做出一些假设。
因此,这将是一个反复试验的答案。
您可能有一个 gem 'github-pages', group: :jekyll_plugins
的 Gemfile
或者它可能包含
group :jekyll_plugins do
gem 'github-pages'
end
无论哪种方式,将 github-pages
移出 :jekyll_plugins
组。也就是说,您应该只有一个空列表:
source 'https://rubygems.org'
gem 'github-pages'
我是 github 页面和 jekyll 的新手,但我正在尝试使用它们启动我自己的个人网站,每次我尝试执行“$ bundle exec jekyll serve”时,它都会说 'Configuration File: none' 即使在本地目录中有一个 _config.yml 文件。除此之外,我还遇到了其他几个错误,使我无法检查我的工作(在下面发布)。有 suggestions/solutions 吗? myWebsite 是父文件夹,jekyllRepo 是 _config.yml 文件和其他几个文件所在的 jekyll 存储库。
$ 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.
首先你应该确认你已经安装了 Jekyll 和 Bundler gem
$ jekyll -v
你应该看到
jekyll 3.8.5 -- Jekyll is a blog-aware, static site generator in Ruby
如果没有安装,请安装
$ gem install jekyll bundler
如果是安装,你只需要在网站的根目录中使用 jekyll(不是 bundle 命令)命令
$ jekyll serve
$ jekyll build
是的,我发现网站上的入门 也有点令人困惑...
由于您没有向您的存储库提供 link,我将根据您的终端输出做出一些假设。 因此,这将是一个反复试验的答案。
您可能有一个 gem 'github-pages', group: :jekyll_plugins
的 Gemfile
或者它可能包含
group :jekyll_plugins do
gem 'github-pages'
end
无论哪种方式,将 github-pages
移出 :jekyll_plugins
组。也就是说,您应该只有一个空列表:
source 'https://rubygems.org'
gem 'github-pages'