{{ $ref := "" }} {{ $type := "" }} {{ $target := "" }} {{ with .Get "type" }} {{ $type = . }} {{ end }} {{ with .Get "href" }} {{ $ref = . }} {{ $target = "_blank" }} {{ end }} {{ with .Get "relref" }} {{ $ref = relref $ . }} {{ end }}

{{ (path.Base $ref) | .Page.RenderString }}

DL {{$page:=.Page}} {{ with .Page.Resources.GetMatch $ref }} {{( printf "```%s\n%s\n```\n" $type .Content ) | $page.RenderString}} {{else}}

file {{$ref}} not found

{{ end }}