I created a Hugo site that working well locally. I deployed my Hugo site as a Github Pages project via a /docs folder on the master branch. So now, I have my Github Page project and my URL looks like that:
https://myname.github.io/myrepository/myHugoSite.
I have a problem with my link. All my links redirect to https://myname.github.io/ but not https://myname.github.io/myrepository/ because my links are /next-page/. These links are working locally because I don't have a repository.
My question is: Do I have to add /myrepository/ to all my links or there is another solution?