question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Assets not linked correctly on gh-pages

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
sondr3commented, Aug 23, 2016

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

0reactions
sondr3commented, May 7, 2017

Closing for inactivity.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found