转换错误:Jekyll::Converters::Scss 遇到错误

ajt*_*dev 8 css sass jekyll twitter-bootstrap

我下载了新的材质 bootstrap css 并想在我的 jekyll 博客中使用它。设置并运行jekyll serve -w本地编译站点后,控制台返回此错误

Conversion error: Jekyll::Converters::Scss encountered an error while converting 'css/main.scss': Invalid CSS after "...x-highlighting"": expected selector or at-rule, was ""bootstrap"" on line 49

搜索了一段时间后,似乎只有我一个人面临这个问题。我究竟做错了什么?

ajt*_*dev 5

事实证明,这是由于我的导入语句之一后省略了逗号引起的

@import
    "base",
    "layout",
    "syntax-highlighting",
    "bootstrap";
Run Code Online (Sandbox Code Playgroud)

希望这可以节省其他人的时间。


小智 5

在 github Pages 中,将主文件夹设置为 /(root),而不是 docs。希望它有效