USF-IMARS / usf-imars.github.io

:house: rebuild of the IMaRS website using jekyll
https://usf-imars.github.io/
0 stars 0 forks source link

root-relative links will break if repo renamed #1

Open 7yl4r opened 6 years ago

7yl4r commented 6 years ago

i.e. if this repo is converted to a project page instead of organization-level page.

Because github pages publishes project pages at {org}.github.io/{project}, root-relative links (eg /assets/img/logo.png) will not work with project pages. This is not an issue currently because the project is named such that github treats it as an organization-level page published at the root ({org}.github.io).

If this were a project page, the root-relative links would point to {org}.github.io/* rather than {org}.github.io/{project}.

The fix is simply to remove the leading /.

Nothing to fix right now, but worth noting for future use.