You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After executing hexo s, the relative link of css url in the server should be the same as the one in the public folder.
For example:
The file in the public folder has the following line: <link rel="stylesheet" href="../../../../css/style.css">
Then the view page source code in the browser should also have the following line: <link rel="stylesheet" href="../../../../css/style.css">
Actual behavior
Actually the view page source code in the browser has: <link rel="stylesheet" href="css/style.css">
This causes the css of all pages except the home page to fail to load.
How to reproduce?
Step1 hexo init blog to use the lastest hexo and default theme.
Step2
change _config.yml
relative_link: true
Step3 hexo g && hexo s and see localhost:4000/archives in the browser
Check List
Please check followings before submitting a new issue.
hexo version
to check)Expected behavior
After executing
hexo s
, the relative link of css url in the server should be the same as the one in the public folder.For example:
The file in the public folder has the following line:
<link rel="stylesheet" href="../../../../css/style.css">
Then the view page source code in the browser should also have the following line:
<link rel="stylesheet" href="../../../../css/style.css">
Actual behavior
Actually the view page source code in the browser has:
<link rel="stylesheet" href="css/style.css">
This causes the css of all pages except the home page to fail to load.
How to reproduce?
hexo init blog
to use the lastest hexo and default theme.change _config.yml
hexo g && hexo s
and seelocalhost:4000/archives
in the browserIs the problem still there under "Safe mode"?
Environment & Settings
Node.js & npm version(
node -v && npm -v
)Your site
_config.yml
(Optional)just change relative_link
Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others
I also tried the old version
5.4.2
of hexo and it doesn't seem to have this problem.The text was updated successfully, but these errors were encountered: