Stylesheed doesn't render in gitlab pages

In my index.html the style.css gets added twice and the second one doesn’t exist so i get an error when i run it. Any idea where I messed up?

<link rel="stylesheet" href="/assets/style.css">

<link rel="stylesheet" href="/style.css">```

We need some more info to be able to help you, so please have a look at Requesting Help and provide some more details, like the template you’re using? Thanks.

I am using this theme:

Ok, well the template is loading those from here:

Have you set the theme up in your config per the readme at https://github.com/panr/hugo-theme-terminal?

Thank you. I guess my problem must lie somewhere else then. I was thinking that was why the gitlab page wouldn’t load the theme (but my custom domain page does) but it seems to be something different.

It seems to be an issue with relative vs absolute paths in gitlab.

If you’re using gitlab, yeah, there might be a problem. You can always override the theme file in your project. For example copy thetheme/layouts/partials/head.html to /layouts/partials/head.html and edit it how you need.

1 Like