Mike Nguyen
Mike Nguyen

Reputation: 41

Baseurl and url config didn't work for jekyll on github

I'm new to jekyll and I'm trying to figure out how to make the config 'baseurl' and 'url' work on github

I set to config like this in _config.xml:

baseurl: /documentation

url: https://michaelpw.github.io/

However, when I open this page https://michaelpw.github.io/documentation/, it displayed the error 404 not found.

Anybody knows what went wrong? I tested on local and everything worked fine.

Upvotes: 4

Views: 5534

Answers (2)

marcanuy
marcanuy

Reputation: 24012

Currently your site is being deployed to https://michaelpw.github.io/.

To have it at https://michaelpw.github.io/documentation/, you need to move the site to a separate repository named documentation instead of michaelpw.github.io.

Upvotes: 3

dalanz
dalanz

Reputation: 111

I think that the meaning of Base Url is not crystal clear. Please, review this link

If you want to set up a base url, you need to create a new Jekyll site in Github -> Follow these steps

Upvotes: 2

Related Questions