supergiant76
supergiant76

Reputation: 5

Jekyll: Change compiled directory for only sass file in _config.yml

I am working with Jekyll and Github Pages, and I would like to change the directory for where my Sass files are compiled from _site/css to another folder of my choosing. Please keep in mind that I only want to change the directory for where the Sass file compiles to, not any other file.

Do I need to specify this in the _config.yml file, and if so, what is the syntax for that?

The reason I am asking is because my .gitignore file ignores the _site folder, therefore when I push to my Github Pages my site does not render any css changes because the entire _site folder is ignored, thus ignoring the css file contained within.

Upvotes: 0

Views: 719

Answers (1)

David Jacquel
David Jacquel

Reputation: 52789

In your _layouts/default.html, change :

<link rel="stylesheet" href="styles/app.css">

for :

<link rel="stylesheet" href="{{ site.baseurl }}/css/app.css">

Upvotes: 1

Related Questions