deployment - Correctly hosting Jekyll website on Git Pages -


i desperate.my mission deploy static website generated using jekyll github pages, using "project" option (instead of user option).

somehow, when use jekyll check website in machine, works fine. once deploy git pages, css files stop working, , every link leads 404 not found error.

i have followed several guides , tutorials fail:

so far created repositories, branches , push everything. not believe error in deployment, in place else.

my repo can found here:

for of wondering, far repository result of 1 tutorial: - andrewmunssel tutorial

i have tested other tutorials, end problem. code wrong? tutorials following outdated , incorrect? should do?

everything on site in sub directory off of domain main site accessed here

http://fl4m3ph03n1x.github.io/web-tutorials/

the templates pointing directories on root of domain trying load stylesheets http://fl4m3ph03n1x.github.io/assets rather located http://fl4m3ph03n1x.github.io/web-tutorials/assets/ same thing happening posts.

what need set baseurl in _config.yml

baseurl: /web-tutorials 

you need modify templates paths css , js use following convention

{{ site.baseurl }}/path/to/css.css 

and post links

{{ site.baseurl }}{{ post.url }} 

you need update site setting in _config.yml


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -