Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Pages SCSS File not Being Read

I'm not sure why but my Github Pages website will not read my scss file even though it's in the repo. I don't think I need to include my code here but if you take a look at my repo you can see it there within the css folder https://github.com/jamesemcc/jamesemcc.github.io and properly linked in the index.html head. Yet if you go to my site https://jamesemcc.github.io/ it's not reading anything from my styles.scss. Thanks for any help!

like image 586
jamesemcc Avatar asked Oct 18 '22 22:10

jamesemcc


1 Answers

I think you just need to start your Sass file with two lines of triple dashes (see docs https://jekyllrb.com/docs/assets/) and link to the .css file in your markup, not .scss, which browsers don’t support.

<link rel="stylesheet" type="text/scss" href="css/style.css">

like image 140
Ted Whitehead Avatar answered Oct 27 '22 11:10

Ted Whitehead