问题
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