Skip to content

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

Open
LySnake wants to merge 1 commit into
MOxFIVE:masterfrom
LySnake:yelee官方

Hidden character warning

The head ref may contain hidden characters: "yelee\u5b98\u65b9"
Open

修复404在非根目录下错误链接,导致style.css无法正确获取#173
LySnake wants to merge 1 commit into
MOxFIVE:masterfrom
LySnake:yelee官方

Conversation

@LySnake

@LySnake LySnake commented Feb 2, 2017

Copy link
Copy Markdown

在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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant