klugjo / hexo-theme-phantom

Hexo implementation of Phantom (http://html5up.net/phantom)
243 stars 65 forks source link

Error finding main.css #10

Closed benjamin-kirkbride closed 8 years ago

benjamin-kirkbride commented 8 years ago

I'm stumped on this one. For whatever reason, the main.css seems to be pulling from the wrong place. there is a main.css in css/ but not in sass/.

10:06:27 [error] 13#13: *1 open() "/usr/share/nginx/html/public/sass/main.css" failed (2: No such file or directory), client: 10.1.1.234, server: localhost, request: "GET /sass/main.css HTTP/1.1", host: "10.1.0.10", referrer: "http://10.1.0.10

benjamin-kirkbride commented 8 years ago

UPDATE: If I run cp public/css/main.css /public/sass/ then it works perfectly. I feel it's safe to say that's not a permanent solution. My understanding of the problem so far is that for some reason the (theme? web server? hexo?) is looking in the sass/ dir instead of the css dir.

benjamin-kirkbride commented 8 years ago

Excerpt from index.html:

 <!-- Custom CSS -->
<link rel="stylesheet" href="/sass/main.css">

<!--[if lt IE 8]>
    <script src="/js/ie/html5shiv.js"></script>
<![endif]-->

<!--[if lt IE 8]>
    <link rel="stylesheet" href="/sass/ie8.css">
<![endif]-->

<!--[if lt IE 9]>
    <link rel="stylesheet" href="/sass/ie9.css">
<![endif]-->
benjamin-kirkbride commented 8 years ago

So I'm an idiot, ofc. You have to install sass after you run npm install for Hexo. Live and learn.