blob: cfa66eaf57426f9af5005294a41ae05429e70fab (
plain)
1
2
3
4
5
6
|
{{- $r := .Get 0 }}
{{- $pr := .Page.Resources.GetMatch (printf "*%s*" $r) }}
{{- if not $pr }}
{{- errorf "Page resource '%s' was not found. Shortcode: 'page-resource'." $r }}
{{- end }}
{{- $pr.Content | safeHTML }}
|