-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failure to fetch CSS #213
Comments
I'm having the same issue as of today. Thought it was something I had done on my end, but I only made a minor change in some body text |
Seems like perhaps its a Jekyll issue, and that |
I fixed it by following the recommendation in #206 (github/pages-gem#460). Change all of the instances of Then, change |
This worked for me, thanks so much! Keeping this open so that (maybe) someone with a bit more experience can update the Hyde repository accordingly. |
Should be a simple edit to commit no? Not too familiar with gem so any devs here can take a look at it? 😢 Last commit was 2015 |
thanks. It worked perfectly fine now. |
@ketozhang
All you have to do is find {{ site.baseurl }} and change to {{ "/" | relative_url }} |
Bug: CSS can't be fetched after installing the gem. Expectation: CSS should be loaded properly from the header.html file. Replication: Just install the gem on a jekyll site. Cause: The base url is not properly configured. Solution: Change {{ site.baseurl }} to "/". poole/hyde#213
This works for me too. Is there any reason this isn't implemented in the main repo? Edit: spoke too soon, I had to do |
I know this is a super old post, but this fixed my issue of CSS only loading for the main page of my website (and not any of my non-main pages). Thank you so much! |
Refer to this link for the issue [Link](poole#213)
This worked for me -- thanks for sharing! |
Hey,
I'm having an issue and I'm not sure what is causing it, but I thought I'd start here.
I am using Hyde + Github Pages to serve a personal site at: isweet.github.io.
When I open up the Chrome console, and visit the
About
page, I see the following error:The reason this
GET
is failing is because the CSS isn't actually located there. It is located at:Now, if I look at
_includes/head.html
, I can see that the stylesheet is being imported as:and that
baseurl
is set to:inside of
_config.yml
.So, it seems like for some reason
site.baseurl
isn't being interpreted as/
but rather as/about
when loading that page. I'm not sure why. Perhaps it has something to do with pretty permalinks?It is possible this is my fault, as I'm relatively new to Jekyll + Hyde. Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: