{{ if and (ne (.Get "number") "") (ne (.Get "number") nil) }} {{ $filename := add (add "shortcodes/paragraph-" (.Get "number")) ".json" }} {{ with .Site.GetPage .Page.File.Path}} {{ $resource := (.Resources.GetMatch $filename).RelPermalink }} {{ $fields := getJSON "content" $resource }}
{{ . }}
{{ end }}{{ .Get "text" }}