I have set up gitlab pages for my user project. I access it under username.gitlab.io/project-name
. The problem is that my index.html wants to load static files under /static/
, like so:
<link rel="stylesheet" href="/static/styles.css?h=d722d99b">
but gitlab pages will search for static files under username.gitlab.io/static/
, which do not exist, instead of username.gitlab.io/project-name/static/
where they actually are.
Is this normal and if so how can I do ?
Note that I could successfully publish group pages, that are accessible under group-name.gitlab.io
(even if I had to enter group-name.gitlab.io/group-name.gitlab.io
before the simple url was created).
Thanks
- to the doc: https://docs.gitlab.com/ee/pages/README.html
edit: related issue and potential fix: https://gitlab.com/pages/jekyll/issues/4