Jekyll path generation

i developed a website using jekyll but it’s making path to css file or picture absolute like adding localhost:400/css/main.css which can’t be accessed without localhost.Do anyone have any idea how can i fix it

it is only doing that when you do jekyll serve - do jekyll build and it should give you the correct url for production.

1 Like

by using jekyll build it’s starting path with a /css/main.css, which also is not valid path. is there anything i can do to solve it

how are you writing the links? config file contents? a repo would be helpful.

1 Like

{{siteurl}}/{{baseurl}}/form/index.html

and what are those set to in the config?

well, I think you need site.baseurl not just baseurl same for siteurl you have to tell it that it is site data which is from the config file…

1 Like

thanks for your time i had understood the problem.:smiley::smiley:

I had uploaded a webite on github on this link https://irtazahussain1.github.io/NLPTDemo/ . there my site is not reading path for styling sheet and other folders path

you have a space in the link to jquery which is breaking it.