Friday 15 July 2011

Links to files in assets not working in github project page using jekyll -



Links to files in assets not working in github project page using jekyll -

i setting github project pages blog using jekyll, , links assets files not work properly. have seen several other posts similar issues, none seem apply case. before marking duplicate, please check have not tried solution suggested in other question.

when trying add together image post image not show. when seek link pdf download dead link (as in http://nikosdaniilidis/github.io/assets/all-pdf/daniilidis2014-surface-noise.pdf)

i tried next configurations:

case 0

in _config.yml

baseurl: "/projectname"` url: "http://username/github.io/projectname"

in _posts/some-post

![image here]({{ site.url }}/assets/path/to/image.png) [pdf here]({{ site.url }}/assets/path/to/some.pdf)

resulting link paths (not working):

http://nikosdaniilidis/github.io/altblog/assets/all-pdf/daniilidis2014-surface-noise.pdf case 1

in _config.yml

baseurl: "/projectname"` url: "http://username/github.io"

in _posts/some-post

![image here]({{ site.baseurl }}/assets/path/to/image.png) [pdf here]({{ site.baseurl }}/assets/path/to/some.pdf)

resulting link paths (not working):

http://nikosdaniilidis/github.io/assets/all-pdf/daniilidis2014-surface-noise.pdf case 2

in _config.yml

baseurl: "/projectname"` url: "http://username/github.io"

in _posts/some-post

![image here]({{ site.baseurl }}{{post.url}}/assets/path/to/image.png) [pdf here]({{ site.baseurl }}{{post.url}}/assets/path/to/some.pdf)

resulting link paths (not working):

http://nikosdaniilidis/github.io/assets/all-pdf/daniilidis2014-surface-noise.pdf

i running out of ideas , appreciate help! here repo, , here resulting page (look under test links , other asset material post, configured lastly of above cases).

thanks

github pages user repository url pattern username.github.io , not username/github.io

try :

url: http://nikosdaniilidis.github.io baseurl: /altblog

jekyll assets github-pages

No comments:

Post a Comment