generator-jekyllized: Something wrong on my project github page deployment
Hello,
After following this:
https://www.npmjs.com/package/generator-jekyllized#github-pages
js and css continue without adding /jekyllized/...
to the paths under site
folder.
This is what i got: link rel=“stylesheet” href="/assets/stylesheets/style.min.css
This is what I wish: link rel=“stylesheet” href=“/jekyllized/assets/stylesheets/style.min.css”
What’s wrong on my gulp file? Please any help would be apreciated.
This is the repo: https://github.com/t0t/jekyllized/tree/master
thanks a lot!
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19 (9 by maintainers)
As commented above, gulp-inject changes some paths and the workaround proposed works. Furthermore, I needed to do some more changes but I think I got it working - leaving it here just in case it helps someone & for future reference.
1 – Added
baseurl: /project-name
to _config.build.yml2 – In gulpfile.babel.js changed the inject:header section from:
to:
3 – In gulpfile.babel.js changed the inject:footer section from:
to:
4 – In default.html changed this:
to:
5 – In header.html changed this:
to:
6 – Now everything works locally and before deploying to gh-pages one should run
gulp build --prod
, so the baseurl variable added in the _config_build.yml file is taken in consideration – thengulp deploy