{{/* We resolve image paths in variant content () via the
page resources of the page the content belongs to (the variant) - not
the page that embeds .Content. With only one variant, the method page
(hugo/layouts/_default/single.html) embeds this content directly; a
raw relative path would resolve against the wrong URL there (the file
lives in the variant's bundle folder, not the method's). An absolute
permalink makes the embed location-independent. */}}
{{- $resource := "" }}
{{- if not (urls.Parse .Destination).IsAbs }}
{{- with .Page.Resources.GetMatch .Destination }}
{{- $resource = . }}
{{- end }}
{{- end }}
{{- if $resource }}
{{- else }}
{{- end }}