今天准备用Jkelly搭建一个自己的博客。博客主题采用NexT 。下面是在安装过程中遇到的问题及解决步骤
问题一#
GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
解决办法
- 从GitHub中获取Personal access tokens值
- 新建环境变量JEKYLL_GITHUB_TOKEN,该值为1中的Personal access tokens值
- 从网站 https://curl.haxx.se/ca/cacert.pem下载.pem文件
- 创建环境变量SSL_CERT_FILE,该值是pem文件存放位置包括文件名。如
D:\file\cacert.pem
问题二
jekyll serve
...
Generating...
Liquid Exception: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configur
ation, or set up an 'origin' git remote pointing to your github.com repository. in /Users/dongf/MyStuff/git/fangchd.githu
b.io/_layouts/default.html
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configur
ation, or set up an 'origin' git remote pointing to your github.com repository. **解决办法**
在config.yml中添加
repository: fangchd/fangchd.github.io