Best way to reference an image in `/static` directory when baseURL could contain a sub-directory?

I think this guy has it right:

Add the <base> tag into <head> :

<base href="{{ .Site.BaseURL }}">

And then you can insert image in post like this:

![Foo image](img/foo.jpg)

(for files in /static/img in this case)