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
/content/foo.md - Assume an image at
/static/img/bar.jpg
And my results, based on code in the aforementioned foo.md:
-
: This is a “textbook” relative link. Should work, and does. -
: Based on other posts here, I didn’t expect this to work because of the leading/, and indeed it doesn’t. -
: 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 /content/foo.md?
Thanks!