# Custom domain woes

**URL:** <https://talk.jekyllrb.com/t/custom-domain-woes/612>\
**Category:** Help\
**Created:** [June 5, 2017, 3:09pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612 "2017-06-05T15:09:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![marfodub](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@marfodub](https://talk.jekyllrb.com/u/marfodub)\
**Post date:** [June 5, 2017, 3:09pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/1 "2017-06-05T15:09:01Z")

</div>

I was able to at least host my website on github pages. It worked fine when I was using my [GitHub.io](http://GitHub.io) domain. When I added my custom domain though, the css and image resources could not be found. In my \_config.yml, I have

baseurl: “” # the subpath of your site, e.g. /blog/  
url: “[mycustomdomain.me](http://mycustomdomain.me)” # the base hostname & protocol for your site

When working with just the [github.io](http://github.io) domain I had my [GitHub.io](http://GitHub.io) url as the url field. But now that I’m using a custom domain I thought I had to change it to that. With the current configurations, my source’s indexhtml contains tags like these:

Which is what I want, since there resides a folder in my gh-pages branch that is css with the css inside of it. The image resources are the same format. Anyone have an idea why I'm not reaching my resources? I've also tried setting the basurl to my project name so it's customdomain.com/project/, do I need to keep the url as my github.io domain? I'm willing to redirect you to my repo or the repo I cloned from if that helps.

EDIT: I think here lies the problem. [http://imgur.com/a/3biOT](http://imgur.com/a/3biOT) I have 2 branches, one for the source and one with all the configurations. The gh-pages branch (source) just gets the generated \_site folder. It says that it cannot load my js files which are in my other branch. Not sure how I need to fix this.

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 5, 2017, 5:00pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/2 "2017-06-05T17:00:30Z")

</div>

Can you share the link of your repository?

If you are facing any issues with running your website: [Check this issue on GitHub](https://github.com/jekyll/jekyll/issues/6118)

---

<div class="post-metadata">

**Author:** ![marfodub](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@marfodub](https://talk.jekyllrb.com/u/marfodub)\
**Post date:** [June 5, 2017, 5:25pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/3 "2017-06-05T17:25:45Z")

</div>

sure, [https://github.com/maxrog/portfolio](https://github.com/maxrog/portfolio)

Yeah, I already fixed the issue of moving the contents of \_site up a directory

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 5, 2017, 6:03pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/4 "2017-06-05T18:03:57Z")

</div>

Check this issue, it will help you. [Issue on Github](https://github.com/maxrog/portfolio/pull/2)

---

<div class="post-metadata">

**Author:** ![marfodub](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@marfodub](https://talk.jekyllrb.com/u/marfodub)\
**Post date:** [June 5, 2017, 6:05pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/5 "2017-06-05T18:05:05Z")

</div>

yep, setting my baseurl to simply “” fixed it. thanks buddy.

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 5, 2017, 6:12pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/6 "2017-06-05T18:12:47Z")

</div>

Do you want any other help?

Once you are done with your modifications, don’t forget to share the link of your website.

---

<div class="post-metadata">

**Author:** ![marfodub](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@marfodub](https://talk.jekyllrb.com/u/marfodub)\
**Post date:** [June 5, 2017, 6:49pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/7 "2017-06-05T18:49:57Z")

</div>

Do you know how to ensure the post order? I’ve named my post markdown files in the format “yyyy-mm-dd” and changed the date attribute inside of them to reflect it. The first one to show when I load the site doesn’t reflect what I expect though.

---

<div class="post-metadata">

**Author:** ![pabloduo](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pabloduo](https://talk.jekyllrb.com/u/pabloduo)\
**Post date:** [June 5, 2017, 8:37pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/8 "2017-06-05T20:37:52Z")

</div>

To enforce order between posts, you can use Front Matter. Here is an example screenshot how from one of the layout aggregator page (see the highlighted line for the hint):

 ![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/e8c62a4a6814ef3994457ba499e1278b9125b910.png)

… to be continued (_new users can upload only one image_) …

---

<div class="post-metadata">

**Author:** ![pabloduo](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pabloduo](https://talk.jekyllrb.com/u/pabloduo)\
**Post date:** [June 5, 2017, 8:38pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/9 "2017-06-05T20:38:35Z")

</div>

And here is an example screenshot how to enforce order between two (or more posts):

 ![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/fb9fbfdff0666ba8a0bf621fec4ead11b5ec4b75.png)

… to be continued …

---

<div class="post-metadata">

**Author:** ![pabloduo](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pabloduo](https://talk.jekyllrb.com/u/pabloduo)\
**Post date:** [June 5, 2017, 8:39pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/10 "2017-06-05T20:39:12Z")

</div>

The generated outcome looks like this (this is documentation nav menu):

 ![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/3d7d05c383f5bd7fa2e8c2477f8042983c78bae9.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 6, 2017, 10:49am UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/11 "2017-06-06T10:49:28Z")

</div>

Which text editor, you have used?  
😋

---

<div class="post-metadata">

**Author:** ![pabloduo](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pabloduo](https://talk.jekyllrb.com/u/pabloduo)\
**Post date:** [June 6, 2017, 3:46pm UTC](https://talk.jekyllrb.com/t/custom-domain-woes/612/12 "2017-06-06T15:46:01Z")

</div>

This is Visual Studio Code ([https://code.visualstudio.com](https://code.visualstudio.com)). I switched to it from Atom because of better terminal support and in general it feels more solid than Atom.

Hope you are going to like it! 🙂
