{{- if .Get "url" -}}
{{- if or (in (.Get "url") "mailto:") (in (.Get "url") "//") -}}
{{- default (.Get "url") (.Get "text") -}}
{{- else -}}
{{- default (.Get "url") (.Get "text") -}}
{{- end -}}
{{- else -}}
{{ errorf "missing url in link %s" .Position}}
{{- end -}}