nielsenramon / chalk

Chalk is a high quality, completely customizable, performant and 100% free Jekyll blog theme.
http://chalk.nielsenramon.com
MIT License
1.23k stars 442 forks source link

Deploy success. But no display page. #105

Closed koansang closed 7 years ago

koansang commented 7 years ago

I'm run ./bin/deploy and deployed successfully. But page error when enter the my Github pages.

Error message is : image

image

What's problem?

koansang commented 7 years ago

I think beacause don't set base url. How do I set the base url?

koansang commented 7 years ago

I fixed this issue. Changed deploy script that added --baseurl option after bundle exec jekyll build command.

migueldemoura commented 7 years ago

So you just changed https://github.com/nielsenramon/chalk/blob/master/bin/deploy#L19 to account for a custom baseurl? This may be useful for others.

koansang commented 7 years ago

@migueldemoura yes~!! For example, If run bundle exec jekyll build --baseurl '/dev' will make default static url is https://xxxx.github.io/dev

migueldemoura commented 7 years ago

Did you add the baseurl config to _config.yml?

koansang commented 7 years ago

@migueldemoura No. How get _config.yml option in deploy file?

migueldemoura commented 7 years ago

Add a line with: baseurl: dev, to _config.yml.

Source: https://jekyllrb.com/docs/configuration/

koansang commented 7 years ago

@migueldemoura Thanks a lot~!!

migueldemoura commented 7 years ago

Glad that helped!

nielsenramon commented 7 years ago

@migueldemoura Thanks for the help! :-) You think we should add something to the readme for this?

migueldemoura commented 7 years ago

@nielsenramon, might be a good idea, seems like a common enough desire among users