Hosting Jekyll Blog for Your Github Project

less than 1 minute read

Note: this is not complete tutorial for hosting jekyll blog

If you are hosting jekyll blog for a project then by default rule of github page it will be hosted under http://<username><project-name>

The appropriate setting for this in your jekyll’s config file i.e. _config.yml would be:

baseurl: "/project-name" # the subpath of your site, e.g. /blog/
url: "" # the base hostname & protocol for your site

Missing the trailing slash in baseurl won’t locate resource properly and you may see site with no css applied. This may be frustrating while blog will be working fine in local.



Leave a comment