# Missing CSS when using different DNS via gh pages

**URL:** <https://discourse.gohugo.io/t/missing-css-when-using-different-dns-via-gh-pages/47457>\
**Category:** support\
**Created:** [December 14, 2023, 5:13pm UTC](https://discourse.gohugo.io/t/missing-css-when-using-different-dns-via-gh-pages/47457 "2023-12-14T17:13:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neilmartindev](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/neilmartindev/32/20872_2.png) [@neilmartindev](https://discourse.gohugo.io/u/neilmartindev)\
**Post date:** [December 14, 2023, 5:13pm UTC](https://discourse.gohugo.io/t/missing-css-when-using-different-dns-via-gh-pages/47457/1 "2023-12-14T17:13:53Z")

</div>

Hello guys, I imagine this is a very trivial one for you but just picked up Hugo today and have been playing with it. I’ve tried to deploy my own test site with a custom domain.

I’ve been hitting a bit of a blocker in my deployment, it looks on developer tools that the server is looking for a .CSS sheet but cannot find it:

 ![Screenshot 2023-12-14 at 17.08.43](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/b/5/b5475225877ac2cf0ad5ec163f1f38bf53b0af34.png)

It seems to be pointing towards [http://martinlabs.io/blog/assets/css/stylesheet.9329d037bc79464b26647fb72e079cd738f5d2418b1df4da3b515db9e22cb4d9.css](http://martinlabs.io/blog/assets/css/stylesheet.9329d037bc79464b26647fb72e079cd738f5d2418b1df4da3b515db9e22cb4d9.css), where no stylesheet exists. Is there a head or something similar that I need to change?

My repository is here: [GitHub - neilmartindev/blog: Hugo powered blog.](https://github.com/neilmartindev/blog)

I’d appreciate and advice!

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [December 14, 2023, 5:20pm UTC](https://discourse.gohugo.io/t/missing-css-when-using-different-dns-via-gh-pages/47457/2 "2023-12-14T17:20:21Z")

</div>

The baseURL in your site configuration should match the URL from which you will serve your production site.

Let’s start there, and troubleshoot further if necessary.

Also, if I were you, I would follow these instructions for deploying with GitHub Pages:  
[https://gohugo.io/hosting-and-deployment/hosting-on-github/](https://gohugo.io/hosting-and-deployment/hosting-on-github/).

This is based on the Hugo [starter workflow](https://github.com/actions/starter-workflows/blob/main/pages/hugo.yml) created and maintained by GitHub.

---

<div class="post-metadata">

**Author:** ![neilmartindev](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/neilmartindev/32/20872_2.png) [@neilmartindev](https://discourse.gohugo.io/u/neilmartindev)\
**Post date:** [December 14, 2023, 5:57pm UTC](https://discourse.gohugo.io/t/missing-css-when-using-different-dns-via-gh-pages/47457/3 "2023-12-14T17:57:44Z")

</div>

No problem, makes sense.

I’ll take a look at adding that deployment, I previously watched a youtube video on my current deployment so it’ll be useful.

My BaseURL currently is set to: “[https://neilmartindev.github.io/blog](https://neilmartindev.github.io/blog)” with a custom domain serving to [martinlabs.io](http://martinlabs.io) so I’ll look at changing that to match also.

---

<div class="post-metadata">

**Author:** ![neilmartindev](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/neilmartindev/32/20872_2.png) [@neilmartindev](https://discourse.gohugo.io/u/neilmartindev)\
**Post date:** [December 15, 2023, 11:56am UTC](https://discourse.gohugo.io/t/missing-css-when-using-different-dns-via-gh-pages/47457/4 "2023-12-15T11:56:06Z")

</div>

Changing the path resolved the issue, thanks.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [December 17, 2023, 11:56am UTC](https://discourse.gohugo.io/t/missing-css-when-using-different-dns-via-gh-pages/47457/5 "2023-12-17T11:56:56Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
