Welcome to mirror list, hosted at ThFree Co, Russian Federation.

page-resource.html « shortcodes « layouts - github.com/marketempower/axiom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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 }}