{{ if gt (len .Params) 0 }} {{ $link_text := .Get 0 }} {{ $prj_file := .Get 0 }} {{ if eq (len .Params) 2 }} {{ $prj_file = .Get 1 }} {{ else if gt (len .Params) 2 }} {{ errorf "%q: must give 1 or 2 parameter for data-link shortcode!" $.Page.File.Path }} {{ end }} {{ if os.FileExists "Tests" }} {{ $filePath := print "Tests/Data/" $prj_file }} {{ if os.FileExists $filePath }} {{ else }} {{ errorf "%q: Project file does not exist: %q" $.Page.File.Path . }} {{ end }} {{ end }} {{ $link_text | markdownify }} {{ else }}