# Site not displaying correctly in gh-pages

**URL:** <https://talk.jekyllrb.com/t/site-not-displaying-correctly-in-gh-pages/2374>\
**Category:** Help\
**Created:** [November 27, 2018, 6:28pm UTC](https://talk.jekyllrb.com/t/site-not-displaying-correctly-in-gh-pages/2374 "2018-11-27T18:28:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [November 28, 2018, 12:11am UTC](https://talk.jekyllrb.com/t/site-not-displaying-correctly-in-gh-pages/2374/5 "2018-11-28T00:11:31Z")

</div>

you have to do both - set the baseurl and then either use relative url or something else to prepend the baseurl on ALL your links, including css/js.

In your boilerplate layout you have:  
`<link rel="stylesheet" type="text/css" media="screen" href="./assets/style.css" />`

that won’t work with baseurl.

you need to do what ckrus said above.

See also:

> [@Relative URL and BaseURL](http://talk.jekyllrb.com/t/relative-url-and-baseurl/2051/3):
>
> What this means? Can you explain it?

---

_[View the full topic](https://talk.jekyllrb.com/t/site-not-displaying-correctly-in-gh-pages/2374)._
