You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
416 B
HTML
7 lines
416 B
HTML
{{- $href := cond (.Destination | not | not) (printf ` href="%s"` .Destination) "" -}}
|
|
{{- $target := partial "paige/func-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 -}}
|