Interesting (inconsistent?) is on the other hand, that “link:” works with images though and I don’t need to use “file:”.
Like:
(image: fitc-amsterdam-2009-map.jpg alt: Photo showing a few examples of badges and how different they set the name of the attendee link: fitc-amsterdam-2009-map.jpg class: blog-img-list)
Yes, maybe inconsistent.It’s because. of this bit of logic in the image. tag:
// build the href for the link
if($link == 'self') {
$href = $url;
} else if($file and $link == $file->filename()) {
$href = $file->url();
} else if($tag->file($link)) {
$href = $tag->file($link)->url();
} else {
$href = $link;
}
It compares the link attribute and the tag attribute and if they are the same, it takes the file URL. In the link tag, you’d have to check if the attribute value exists as image in the path and if yes, get the image and its file URL. Would be possible, yes.