Omphaloskepsis-2/layouts/shortcodes/page-resource.html

9 lines
231 B
HTML
Raw Normal View History

2023-08-22 10:14:33 +00:00
{{- $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 -}}
2023-07-01 03:16:59 +00:00
{{- end -}}