HelloSilence
HelloSilence

Reputation: 935

github pages custom apex domain

I modified a jekyll template and everything was fine util I tried to custom my domain.I bought a domain named "www.enjoycode.me".And I refered the link Custom domain for GitHub project pages.Then I did some setting below:

1.create A records enter image description here

2.create a CNAME Record enter image description here

3.Create a CNAME file

the file contains enjoycode.me

After doing these,I visited www.enjoycode.me,it displayed my homepage,but the layout was messed up.

enter image description here

Besides this,I clicked the links,the address field became http://enjoycode.me/hellosilence/2015/09/07/markdown-test/ it displayed 404 page(File not found).

When I used the link http://samuel40.github.io/hellosilence/ to visit,everything was OK.

So what should I do to fix the problem?(seems the problem of file path?)

Upvotes: 0

Views: 291

Answers (1)

HelloSilence
HelloSilence

Reputation: 935

Open the _config.yml file and edit the "baseurl" ,like this baseurl: "".

Upvotes: 1

Related Questions