如何阻止github页面解析YAML [英] How to stop github pages from parsing YAML
问题描述
我写了一个纯静态博客,没有jekyll引擎,它是纯js静态博客.
I've write a pure static blog without jekyll engine, it is pure js static blog.
我想将我的js博客推送到github页面,不幸的是它将解析YAML并得到这样的错误:
I want to push my js blog to github pages, unfortunately it will parse YAML and get such an error:
您的网站在构建时遇到问题:第3行第14栏中的YAML语法错误:在此情况下不允许映射值.有关更多信息,请参见 https://help. github.com/articles/page-build-failed-invalid-yaml-in-data-file .
Your site is having problems building: There was a YAML syntax error on line 3 column 14 in : mapping values are not allowed in this context. For more information, see https://help.github.com/articles/page-build-failed-invalid-yaml-in-data-file.
如何阻止github页面解析YAML?
How to stop github pages from parsing YAML?
推荐答案
如果要禁用jekyll,请在github页面存储库的根目录中添加一个空文件 .nojekyll .
If you want to disable jekyll, add an empty file .nojekyll at the root of github page repo.
touch .nojekyll
git add .
git push
这篇关于如何阻止github页面解析YAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!