Relative URL and BaseURL

I ran across this thread trying to solve a similar problem. I don’t have a github site yet, just doing everything locally, and my baseurl = “/mish”, so my URLs are http://localhost:4000/mish/, but I do not want a baseurl, or rather, I want the baseurl to be “/”, but then the pages can’t find any images, css, etc, which I do not understand because the server is actually running in the “/mish” directory, so the actual baseurl IS “/”.

Is the baseurl allowed to be just “/” or even “” ?

So, with baseurl= “/mish”, if I have the link:

[here]({% post_url /knowledge/2018-01-29-KN-337 %})

is breaks because it is missing the baseurl.

If I use

[here]({{ site.baseurl }}{% post_url /knowledge/2018-01-29-KN-337 %})

It works, but if I set baseurl=“/”, everything breaks.

What am I missing?