Custom domain woes

I was able to at least host my website on github pages. It worked fine when I was using my 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” # the base hostname & protocol for your site

When working with just the github.io domain I had my 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 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.

Can you share the link of your repository?

If you are facing any issues with running your website: Check this issue on GitHub

sure, https://github.com/maxrog/portfolio

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

Check this issue, it will help you. Issue on Github

1 Like

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

1 Like

Do you want any other help?

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

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.

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):

… to be continued (new users can upload only one image) …

1 Like

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

… to be continued …

1 Like

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

Hope this helps!

1 Like

Which text editor, you have used?
:yum:

This is Visual Studio Code (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! :slight_smile:

1 Like