code-quality

Hosting Jekyll Blog for Your Github Project

hosting jekyll blog for your github project

Hosting Jekyll Blog for Your Github Project

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>.github.io/<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: "http://username.github.io" # 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.

Press Esc to return to the article
About the author

Prakash Poudel Sharma

Independent product manager & agentic engineering consultant

I'm an independent product manager, founder, and software builder based in Kathmandu. I help teams make product decisions and adopt agentic software development, drawing on over a decade of building software. I write about product thinking, engineering with AI, and hands-on experiments.

Keep reading

More on this

Join the conversation0 comments

What did you take away?

Thoughts, pushback, or a story of your own? Drop a reply below — I read every one.

Comments are powered by Disqus. By posting you agree to theirterms.

—
0:000:00