Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

111
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda