Sass: Error: This file is already being loaded + unrecognized front matter

Hello,
I have jekyll blog but suddenly it has problem during build. I get this error:

     Generating...
       Jekyll Feed: Generating feed for posts
Warning on line 1, column 1 of /home/john/Projects/blackblog/assets/css/index.sass:
This selector doesn't have any properties and won't be rendered.
  ╷
1 │ ---
  │ ^^^
  ╵
Warning on line 2, column 1 of /home/john/Projects/blackblog/assets/css/index.sass:
This selector doesn't have any properties and won't be rendered.
  ╷
2 │ ---
  │ ^^^
  ╵
Error: This file is already being loaded.
  ┌──> /home/john/Projects/blackblog/assets/css/index.sass
4 │ @import index, font, basic, layout
  │         ^^^^^ new load
  ╵
  ┌──> /home/john/Projects/blackblog/assets/css/classes.sass
1 │ @import index, highlight
  │         ━━━━━ original load
  ╵
  /home/john/Projects/blackblog/assets/css/index.sass 4:9    @import
  /home/john/Projects/blackblog/assets/css/classes.sass 1:9  root stylesheet
  Conversion error: Jekyll::Converters::Sass encountered an error while converting 'assets/css/classes.sass':
                    This file is already being loaded.

This code of whole site: github.com/yagarea/blackblog

How can I fix it so I can build my site ?

Thank you for help

hmm, seems like it should be ok - try renaming the css/index.sass file to index.scss - not sure it will make a difference but usually the file importing the sass partials is an scss file but that just might be the ones I have seen.

you might also try renaming css/index.sass to styles.sass or styles.scss - maybe it doesn’t it like it being named index? usually I see it as styles.scss or site.scss. Index would normally be for an html page not a css page so it might be treating a file named index differently.

1 Like

Thank you for answer. You are right.