New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复404在非根目录下错误链接,导致style.css无法正确获取 #173

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
1 participant
@LySnake

LySnake commented Feb 2, 2017

在404.html文件中,生成如下样式为正确:
<link rel="stylesheet" href="/css/style.css">
而我的环境中生成的是:
<link rel="stylesheet" href="css/style.css">
导致在https://userName.github.io/blog/a/dfssdfsdfs.html这样错误连接中,实际请求的http连接是https://userName.github.io/blog/a/css/style.css而获取不到style.css显示错乱。

hexo环境:
image

官方对css辅助函数的说法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment