-
Notifications
You must be signed in to change notification settings - Fork 359
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
baseurl of '/' now breaks on GitHub pages #460
Comments
I just made 2 line of changes and css of my entire site broke. There should definitely be a shout out when such breaking changes are introduced. Anyway what is the solution for this? Changing |
That is what I did in the commit I linked to above, yes (or if you have e.g. |
@dracos Thanks. By the way, it seems to be working fine locally. Any idea how to replicate it locally? |
@ankitbko You need |
Hope this fixes the broken site Refer: github/pages-gem#460 Signed-off-by: Vikram Narayanan <[email protected]>
…site.baseurl }} caused 404 errors after having pushed to Github pages; This is probably related to github/pages-gem#460.
@dracos thanks for the tip 💪 . I was able to reproduce the issue locally. |
YAY! thanks for sharing the workaround! |
Latest GitHub pages converts baseurl of '/' to ''. github/pages-gem#460
Latest GitHub pages converts baseurl of '/' to ''. github/pages-gem#460
Following the suggestions available here: github/pages-gem#460
Changed {{ site.baseurl }} to {{ "/" | relative_url }} (re: github/pages-gem#460)
changed {{ site.baseurl }} to {{ "/" | relative_url }} re: github/pages-gem#460
More changing {{ site.baseurl }} to {{ "/" | relative_url }} (re: github/pages-gem#460)
Before submitting an issue, please be sure to
bundle update github-pages
)This issue affects
What did you do (e.g., steps to reproduce)
I pushed my site with a small change from the last push couple of weeks ago.
What did you expect to happen?
The site to appear as it has done for years :)
What happened instead?
All the styling is lost, because the upgrade to jekyll-github-metadata v2.5.0 means that a config with baseurl set to
/
is now overridden to baseurl""
and the templates were relying on baseurl being set to/
. I understand thatbaseurl: "/"
is incorrect and shouldn't be used (though I can't find any official documentation saying why this shouldn't work okay, only links to Parker's 2014 blog post), but anyway, I didn't expect the whole site to break by adding a new blog post :)Additional information
The text was updated successfully, but these errors were encountered: