Website not loading css files on certain page

∥☆過路亽.° 提交于 2020-01-04 02:41:10

问题


The site i am building isn't loading any css/javascript file for certain pages. The pages in question are the markdown post files. I am using Jekyll to build the site.

Here is the link

http://joshhornby.co.uk/

As you can see the index page works but the blog posts dont.


回答1:


your href does not start with / nor is it absolute (http://) so it will use a path relative to the current page.

It is looking for CSS in the folder http://joshhornby.co.uk/2012/11/14/

Add / before your stylesheet/ in the href and you should be good.



来源:https://stackoverflow.com/questions/13388184/website-not-loading-css-files-on-certain-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!