Answer the question
In order to leave comments, you need to log in
How to properly set paths in GitHub Pages?
How should the paths be set correctly so that the site is displayed correctly for everyone?
For example, in layout
<link rel="stylesheet" href="./assets/css/normalize.css">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="assets/css/normalize.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://user.github.io/site/assets/css/style.css">
<link rel="stylesheet" href="https://user.github.io/site/assets/css/normalize.css">
Answer the question
In order to leave comments, you need to log in
Try to put only a slash
instead of a dot and a slash , because the dot slash indicates the current directory, and the slash is the root of the site. Something like this:
<link rel="stylesheet" href="/site/assets/css/normalize.css">
<link rel="stylesheet" href="/site/assets/css/style.css">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question