Jekyll doesn't compile scss files with `jekyll serve`

后端 未结 4 734
我寻月下人不归
我寻月下人不归 2021-02-15 14:10

I\'m trying to create a website using Jekyll, and everything worked fine. Until I wanted to custom the design.

I\'ve updated my css/main.scss in order to in

4条回答
  •  甜味超标
    2021-02-15 15:01

    I've run into similar issues when trying to use Jekyll to pass YAML content into partials. It looks like this workflow is not possible.

    The work around was to place all variables on the main SCSS file and get Jekyll to populate the values from YAML, then using partials for the actual styles.

    Here's a simple repo with some of my solutions: https://github.com/guschiavon/jekyllfy-sass

提交回复
热议问题