Jekyll 服务器不在本地启动

问题描述 投票:0回答:0

我正在创建一个 GitHub Pages Jekyll 网站。当我在本地启动 Jekyll 服务器编辑主题时,编译这个 SCSS 文件时出现错误:

---
---

// start content

$green:   #08a057 !default;
$blue:    #3d61fd !default;

@import 'bootstrap/bootstrap';

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&display=swap');

/* add additional CSS rules below */
html {
    scroll-behavior: smooth;
  }
  
body {
    background:#fff;
    font-size:17px;
    transition: all 200ms linear;
    font-family: "PT Sans",sans-serif;
    line-height:1.7;
    color: #333;
    overflow-x:hidden;
    padding-top:116px;
    
}

如果我删除前两行,服务器将启动,但不再应用布局。

css ruby visual-studio jekyll
© www.soinside.com 2019 - 2024. All rights reserved.