-
Notifications
You must be signed in to change notification settings - Fork 65
Css and Js files link to wrong directory for project Github Pages #134
Comments
Did you check your |
No, I didn't know that was necessary. What part of the |
I don't know, can't really help without your code. |
Here it is. https://github.com/Mountainview-WebDesign/lifestonechurch I think the only thing I've changed in the Gruntfile is the buildcontrol.dist.options.remote. Also, I tried commenting out the usemin stuff, but I went back. |
http://jekyllrb.com/docs/configuration/ you need |
Should that go in |
That still isn't working for me, but it looks like I've also got another problem on my hands. It's not generating the css files at all in my |
This generator won't help you much if you are not already familiar with |
I am familiar with jekyll. I've created sites with it before, which is why I wanted to streamline my workflow with this generator. But I'm not sure what's happening in this Gruntfile, what belongs in I would have expected this generator to work out of the box with github pages on a project (repo), and if not, I would expect some specific instruction on the readme to help me set it up. Does that make sense? |
I think the |
I think it actually goes in I think it could be an issue with grunt-usemin. Because even if I say:
It always changes the path to:
http://stackoverflow.com/questions/18964875/how-should-i-configure-grunt-usemin-to-work-with-relative-path But my question would be, has anyone ever gotten this generator to work with github pages projects? |
Yes, I got it to work by shimming the url...but now in a new project grunt-cdn explicitly requires cwd and dest paths. I have been working on this https://gist.github.com/mashcode/27643189f1f42dcbb176 but have hit a wall when it stalls at the cdn task. Maybe the paths are wrong? Requires [email protected] node_modules/grunt-cdn Marc |
Hi, A work around I just implemented is to use a CNAME alias. So instead of [ user.github.io/whatever ] it can redirect to [ whatever.myTLD.foo ] This will obviously require the ability to manage your own dns records. |
That's true, a custom domain would solve the problem. What do you mean you got it it work by "shimming" the url? |
Does CNAME point all requests, even GitHub.io, to the alias? Or does one have to write a rule? Marc
|
Ok, so this is the part you added: https://gist.github.com/mashcode/27643189f1f42dcbb176#file-gruntfile-js-L198-L208 Perhaps, this jekyll generator should consider using grunt-cdn? |
Well in all fairness the system is really designed for dev => production flow. A vanilla Jekyll can handle the majority of the factions and can serve up static project pages Marc
|
What do you mean by a "dev => production flow" |
local check/build => dist Hope it makes sense, Marc
|
+1 on this issue |
+1 |
1 similar comment
+1 |
I'm not longer using this project, so I'm going to unsubscribe from notifications, but if other people are still having this issue, I'll leave it open. |
My github page's css is being generated at http://mountainview-webdesign.github.io/lifestonechurch/main.f4ca.css, but in the index.html it points to http://mountainview-webdesign.github.io/css/main.f4ca.css
I can't figure out how to get it to work. I would think that this should work out of the box. What am I doing wrong?
The text was updated successfully, but these errors were encountered: