I'm using Jekyll for the first time to build a portfolio site. I had no trouble with customizing the HTML but when I follow instructions on customizing the CSS, the changes I make are not applied after I do bundle exec jekyll serve
. Here's what I've tried following instructions from this github help link:
I created a CSS file (assets/css/style.css) and at the top of it I put this block of code:
---
---
@import "{{ site.theme }};
/* sample code to test it */
.button {
background-color: red;
}
Then, in the head.html file, I made sure to link this newly created stylesheet by adding this:
<link rel="stylesheet" href="{{- 'assets/css/style.css' | relative_url -}}" />
<link rel="stylesheet" href="{{- 'assets/css/main.css' | relative_url -}}" />
Note that the main.css is the original CSS file that comes with the template. Afterward, when I refresh the page, the button has not changed. I'd appreciate any tips on what I should be doing differently. Thanks