我有一个 Github 页面站点已经在 http://pshrishi.github.io 上运行,我的简历发布在 pshrishi.github.io/resume 和其他几个类似 URL/地址的演示文稿,如 pshrishi.github.io/XYZ 。我想在像 pshrishi.github.io/blog 这样的 URL 上托管博客。
我在我的 MBP 上设置了 jekyll,并且一直在寻找一个分步指南来继续这个博客。任何帮助将不胜感激,因为我希望博客尽快上线。
我已经列出了到目前为止我尝试过的步骤,如下所示:
cd pshrishi.github.io
jekyll new blog
_config.yml
文件。 cd blog
和 jekyll serve
localhost:4000
最佳答案
您的 jekyll 不在 repo 的顶层。 Github 无法读取它。
只需将您的 jekyll 从/blog 移出到此 repo 的根目录。
添加:
您当前的错误设置如下所示:
/pshrishi.github.io
/blog
/<jekyll-content>
/index.html
/_posts
/_config.yml
/blah-blah
/resume
/<jekyll-content-again>
/index.html
/_posts
/_config.yml
/blah-blah
你应该这样制作 jekyll:
/pshrishi.github.io
/<jekyll-content>
/index.html
/_posts
/_config.yml
/blah-blah
希望这可以帮助 :)
关于github - 在 Github 页面上设置博客,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26161983/