我对github页面和jekyll非常陌生,但是我尝试使用它们来创建自己的个人网站,每次我尝试执行'$包exec服务‘时,它都写着'Configuration : none’,尽管本地目录中有一个_config.yml文件。除此之外,我还犯了其他几个错误,使我无法重新审视我的工作(如下文所示)。有什么建议/解决方案吗?myWebsite是父文件夹,jekyllRepo是_config.yml文件和其他几个文件所在的jekyllRepo。
$ 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.发布于 2019-03-04 07:07:24
由于您没有提供到存储库的链接,我将根据您的终端输出进行一些假设。因此,这将是一个试错的答案。
您可能有一个带有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'发布于 2019-03-04 05:04:46
首先,您应该验证是否安装了Jekyll和Bundler宝石。
$ 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是的,我觉得网站的起步也有点混乱.
https://stackoverflow.com/questions/54973341
复制相似问题