You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when that becomes halmerweg/index.html, the image stays one level up, and the <img> tag that gets generated still points to just halmerweg.jpg instead of ../halmerweg.jpg.
The text was updated successfully, but these errors were encountered:
spanezz
changed the title
{{<figure>}} shortcode breaks relative links in when not using uglyURLs
{{<figure>}} shortcode breaks relative links when not using uglyURLs
Feb 26, 2016
Oh I see. I assumed it was possible to just refer to resources relative to the current page, so to answer your question, in my example, that would have been relative to where halmerweg.md is located.
The ikiwiki that I currently use supports that, and it is a feature that I have so far relied on, because it allows me to prepare content without needing to know in advance where it's going to be located on the site.
Hello, and thank you for hugo.
I like to keep my pages and assets together (#330), and I'm so glad to find that it now works out of the box.
I also like to use relative paths in my pages to reference images, and ideally I could just do:
However, when that becomes
halmerweg/index.html
, the image stays one level up, and the<img>
tag that gets generated still points to justhalmerweg.jpg
instead of../halmerweg.jpg
.This is somehow related to #1768.
Using
relref
instead the links are correct:renders correctly as:
The text was updated successfully, but these errors were encountered: