Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
Github Pages not working for static website

I have a static website repository that is pure HTML, CSS, and JavaScript.

When I run live server on VSCode, the site runs just fine

enter image description here

I setup github pages

enter image description here

But when I actually go to the site link I get a blank page.

Why am I getting a blank page when the site works fine in my localhost when using the VSCode live server?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Look at your URLs.

In your development server, you are publishing at /

On Github Pages, you are publishing at /pizza-legends/

Your URL which starts /Content/... is going to /Content/... on your development server and find the file.

On Github Pages, it is going to /Content/... and not finding the file because it is at /pizza-legends/Content/....

Fix your URLs.


NB: You had your developer tools open. You should have looked at the Network tab and seen all the 404 Not Found errors.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!