Jekyll Site not Working


#1

Hello Team!

I having issues rendering my site. The 404 page is not working and the site is not rendering.


#2

since you are hosting a project on GH you need to have the project repo name in the path to your assets, usually this is done by setting the baseurl in the site config.

So in your config file you would have:
baseurl: /patriciocabrera

and then you would prepend {{site.baseurl}} to your urls.
like:
<link href="{{site.baseurl}}/assets/main.css" rel="stylesheet">
though there are other ways to do it.


#3

Thank you @rydar. How your I do it if I am just uploading site via FTP. Same procedure.


#4

you can do it the same way and just leave the site.baseurl setting blank if you are not using GH pages…