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

后端 未结 4 756
我寻月下人不归
我寻月下人不归 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:10

    First add to your config.yml

    sass:
        sass_dir: _sass
    

    Then add to top in your main.scss file, two dashed lines https://jekyllrb.com/docs/assets/

    ---
    ---
    
    @charset "utf-8";
    

    After that write in your cmd console

    jekyll serve

    and check your compilation.

提交回复
热议问题