0

I have a Github repo where the readme.md has relative links to display images from a folder called img.

![Add Remove Programs](/img/ArcGIS_Pro_DI_LicenseCheck.jpg?raw=true "Add Remove Programs")

This displays fine at the project address.

But on the Github page, the links are broken. They are trying to reference the following URL, without the project name:

https://simongis.github.io/img/ArcGIS_Pro_DI_LicenseCheck.jpg = 404

From this answer and this blog post, I thought this issue has been resolved?

Can someone point out where I am going wrong?

I have tried playing around setting the baseurl to my project director in the _config.yml but that did not seem to make any difference.

jakc
  • 1,161
  • 3
  • 15
  • 42

1 Answers1

1

That is exactly what baseurl solves:

Base URL

Serve the website from the given base URL

Set it with the project name and make sure you generate the links in your website including it , for example with the absolute_url filter

baseurl: /gnaf-for-arcgis

![Add Remove Programs]({{'/img/ArcGIS_Pro_DI_LicenseCheck.jpg?raw=true' | absolute_url}} "Add Remove Programs")
marcanuy
  • 23,118
  • 9
  • 64
  • 113