nikola auto deployment in github pages with custom domain name (CNAME)

While github pages is applicable to using the custom domain name accordingly, which acutally creating a CNAME file with xxx.youdomain.com as contents.

1st trial

It seems currently Nikola did not expected that CNAME as master's content so you have to checkout master manually, and add that CNAME file with the domain name you intend to use, and push into github by youself. * Reminding * the CNAME file created in src branch won't work since nikola github_deploy would ignore and won't copy CNAME into master branch. So if you don't do it manally the auto deploy would be over written again & again even through you settle down the domain name in setting page of github repo or added in "src" branch.

2nd trial

It seems 1st trial works, but after new post build & aut deploymetn by nikola, CNAME disappeared again :( Then, fould this trick, just copy CNAME into files folder in src branch.

One more thing

BTW, the even .gitignore need to double check also in master branch, all these branches would share this simple config file...

Comments