You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run jekyll --server my site is available at http://localhost:4000/, but when I deploy to GitHub Project Pages, it's available at http://username.github.com/projectname/.
This means that I cannot use absolute URLs when referring to stylesheets and other resources. Relative URLs break when the same layout is used by e.g. index.html and 2012/01/01/happy-new-year.html. What is the-accepted/a-good way of adding stylesheets and other resources to a GitHub Project Pages repository?
When I run
jekyll --server
my site is available athttp://localhost:4000/
, but when I deploy to GitHub Project Pages, it's available athttp://username.github.com/projectname/
.This means that I cannot use absolute URLs when referring to stylesheets and other resources. Relative URLs break when the same layout is used by e.g.
index.html
and2012/01/01/happy-new-year.html
. What is the-accepted/a-good way of adding stylesheets and other resources to a GitHub Project Pages repository?Cross-posted from Stack Overflow.
The text was updated successfully, but these errors were encountered: