Gh-pages site looks good locally but on gh all but home page look wrong

your site is not a project site - it is your user site - the difference being project sites are served from within a sub directory of your user name - those are the ones that need the baseurl set to the name of the repo.

Since yours does not need that the baseurl should be empty - I would do:
baseurl: ''

you currently have a slash in there - that is not empty and will likely break the url for loading stuff.

Don’t put site.url in front - keep it the way it was with baseurl.

There is also relative_url which I think is the new better way.

A little more info here:

or look at the url filters.

1 Like