# Looked at so many posts...still can't figure out why GitHub Pages is failing to load CSS when it works locally

**URL:** <https://talk.jekyllrb.com/t/looked-at-so-many-posts-still-cant-figure-out-why-github-pages-is-failing-to-load-css-when-it-works-locally/8618>\
**Category:** Help\
**Created:** [October 17, 2023, 10:24am UTC](https://talk.jekyllrb.com/t/looked-at-so-many-posts-still-cant-figure-out-why-github-pages-is-failing-to-load-css-when-it-works-locally/8618 "2023-10-17T10:24:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balance](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@balance](https://talk.jekyllrb.com/u/balance)\
**Post date:** [October 17, 2023, 10:24am UTC](https://talk.jekyllrb.com/t/looked-at-so-many-posts-still-cant-figure-out-why-github-pages-is-failing-to-load-css-when-it-works-locally/8618/1 "2023-10-17T10:24:07Z")

</div>

I feel like I’m missing something, but if someone could help me out, I would be forever indebted.

Repo: [GitHub - nathankkim/nathankkim.github.io](https://github.com/nathankkim/nathankkim.github.io)

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [October 17, 2023, 1:19pm UTC](https://talk.jekyllrb.com/t/looked-at-so-many-posts-still-cant-figure-out-why-github-pages-is-failing-to-load-css-when-it-works-locally/8618/2 "2023-10-17T13:19:32Z")

</div>

In `_config.yml`, you have `baseurl` incorrectly set to a sub-path:

```
baseurl: "/nathankkim.github.io"

```

For a whole-domain site, `baseurl` should be the empty string:

```
baseurl: ""

```

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [October 17, 2023, 3:05pm UTC](https://talk.jekyllrb.com/t/looked-at-so-many-posts-still-cant-figure-out-why-github-pages-is-failing-to-load-css-when-it-works-locally/8618/3 "2023-10-17T15:05:26Z")

</div>

> [@chuckhoupt](#):
>
> For a whole-domain site

I think this is called the user or username domain/site? when the repo name = your username it ends up being the root where all your repos will live. So on this one site there is no baseurl, but on any other repo in this account they will need the baseurl set to your username as they will all be served as sub folders from the username directory.
