In config.yaml
baseurl: http://bguiz.github.io/js-standards
I expect hugo to translated markdown content:

Into this html:
<img src="http://bguiz.github.io/js-standards/img/foo.png">
Or even this would work:
<img src="/js-standards/img/foo.png">
... but it does neither, and outputs this instead:
<img src="/img/foo.png">
How do I get image tags to take into account BaseUrl?
I should add that it makes no difference whether or not a trailing / is present in baseurl in config.yaml
If you set canonifyurls to true in config, this should work.
The default value is false (which is opposite of what it says in the doc.)
Thanks for the tip Bjørn - worked like a charm. The documentation
actually threw me off on this count!
On 18 January 2015 at 10:57, Bjørn Erik Pedersen
[email protected] wrote:
If you set canonifyurls to true in config, this should work.
The default value is false (which is opposite of what it says in the doc.)
—
Reply to this email directly or view it on GitHub.
Good, close this as a duplicate of #802
Most helpful comment
If you set canonifyurls to true in config, this should work.
The default value is false (which is opposite of what it says in the doc.)