How do I create root-relative links in a static site?
问题 When building a static HTML site, you can set the base url like so <base url="http://localhost:8888/mysite" /> . Supposedly when you insert, say, an image, you can do so from that base url like so <img src="/img/logo.png" /> , which is equivalent to <img src="http://localhost:8888/mysite/img/logo.png" /> My problem is that these relative links don't work when I move the site around, which is a pain because I'm trying to share it with someone on Dropbox. I thought I could just chage the base