8 lines
231 B
HTML
8 lines
231 B
HTML
{{- $src := $.Page.Resources.GetMatch ($.Get 0) -}}
|
|
{{- if ( not $src ) -}}
|
|
{{- errorf "No Page Resource found for src '%q' (%q)" ( $.Get 0 ) .Page.File.Path -}}
|
|
{{- end -}}
|
|
|
|
{{- with $src -}}
|
|
{{- .RelPermalink -}}
|
|
{{- end -}}
|