Files. Sass do not compile

Asked

Viewed 87 times

2

I’m working on a project using Jekyll with Github Pages.

I’m trying to use a file .sass, saving it in the folder _sass, using the syntax recommended by the Jekyll website:

---
---

.page-header
  background: #333
  padding: 1em
  text-align: center

The file however does not compile to the final file main.css in the briefcase _site/css.

What should I do to work with files .sass in Jekyll?

  • When you try to compile it gives some error or simply does not compile?

  • Apparently it does not compile. At least the terminal does not return any error.

1 answer

2

I forgot to import the file .sass at the end of the archive css/main.scss:

@import
    "base",
    "layout",
    "syntax-highlighting",
    "header" /* nome do meu arquivo .sass, sem a extensão */
;

Now it’s working perfectly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.