After reading the docs, and about two dozen posts about difficulty getting images to show up, I still can’t get it to work the way I think it should (though if it’s just my thinking that’s wrong I’m fine with that too).
My understanding is that content in
/static is supposed to be served at the root of the site.
Here are the deets:
- Assume a page at
- Assume an image at
And my results, based on code in the aforementioned
![works](../img/bar.jpg): This is a “textbook” relative link. Should work, and does.
![doesn't work](/img/bar.jpg): Based on other posts here, I didn’t expect this to work because of the leading
/, and indeed it doesn’t.
![doesn't work either](img/bar.jpg): However, I thought removing that
/should work, but it doesn’t.
Question: What’s the “right” way to make an absolute link to an image at
/static/img/bar.jpg from a page at