Assets not linked correctly on gh-pages
See original GitHub issueHi,
first thanks for the generator, it works great. I developed my page and deployed it to gh-pages, but there none of the assets are linked correctly.
I linked everything as href="/assets/images etc.
Do I need to setup anything like baseurl etc in config.yml or should it work out of the box.
If I set a baseurl I see that the canonical link in the generated html is a combination of the site.url and site.baseurl which seems wrong.
I tried finding help in the readme and old issues but could not solve this yet. Thanks in advance.
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (12 by maintainers)
Top Results From Across the Web
Github Pages failing to properly link to my assets and relative ...
1 Answer 1 · Strings in YAML files do not need to be quoted. See how baseurl: /blog is just fine.. · Dont...
Read more >Fixing Broken Relative Links on GitHub Pages | Pluralsight
What do you do when your website's relative links work on your local machine but not when deployed on GitHub Pages?
Read more >Deploying to Github Pages? Don't Forget to Fix Your Links
Learn the #1 reason why deployments to Github Pages fail and how to fix it. ... Broken link without a repository name, and...
Read more >Angular deploy to GitHub Pages - JavaScript in Plain English
Here we will talk about deploying single page app using angular and github pages. Setup: You have an angular project. Install angular-cli-ghpages package...
Read more >Root level assets not loaded on Github Pages - Jekyll Talk
I also had to set the baseurl to / in _config.yml to make Github Pages load the stylesheet from /assets/css/main.css correctly.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Okay, I’ve pushed a new version of the generator to NPM, so you should update it and run
yo jekyllized:updatein your project root and it’ll update the gulp tasks to be able to correctly push to Github. Let me know how it works 😃Closing for inactivity.