Reputation: 5
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
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