Skip to content

Site looks slightly different on local versus github pages #36824

Discussion options

You must be logged in to vote

There are two parts to the problem:

  • You're building the site using the default Jekyll build, but your repository contains a plain HTML site, not a Jekyll site. Usually that'd work, but:
  • Jekyll ignores files starting with an underscore, like your _globals.css and _variables.css.

The easiest two solutions are (either should work):

  • Rename those CSS files so their names don't start with an underscore.
  • Add a .nojekyll file to the root of your repository to disable the Jekyll build and deploy your page as-is.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@elizzakai
Comment options

@airtower-luna
Comment options

@RonenTsirlin
Comment options

Answer selected by elizzakai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants