{{- $href := cond (.Destination | not | not) (printf ` href="%s"` .Destination) "" -}}
{{- $target := partial "paige/target.html" (dict "page" .Page "url" .Destination) -}}
{{- $targetattr := cond ($target | not | not) (printf ` target="%s"` $target) "" -}}
{{- $title := cond (.Title | not | not) (printf ` title="%s"` .Title) "" -}}

{{- printf `<a%s%s%s>%s</a>` $href $targetattr $title .Text | safeHTML -}}
