github - 使用jekyll搭建的博客在本地显示正确,但是传到git上,使用gitpage时却显示排版乱码
滿天的星座
滿天的星座 2017-05-02 09:36:52
0
1
667

使用jekyll在本地搭建的网站是正常显示的,如图

但是上传到github上,用gitpage时,却排版乱码,我看了一下底下的css并没有生成。不知道是哪里的问题,如图

有类似问题,但是我没有依据他们的回答解决问题。/q/1010000004165137

滿天的星座
滿天的星座

reply all(1)
淡淡烟草味

The direct reason is that it cannot be loaded css/main.css

The reason why it cannot be loaded is that the address he requested is
https://2youngg.github.io/css/main.css
It should be
https://2youngg.github.io/Test01/css/main.css

Solution
In config.yml, there is a field similar to base_url, which is set to
https://2youngg.github.io/Test01/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!