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