mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-27 09:02:19 +00:00
9 lines
No EOL
295 B
HTML
9 lines
No EOL
295 B
HTML
{{- $u := urls.Parse .Destination -}}
|
|
<a href="{{ .Destination | safeURL }}"
|
|
{{- with .Title }} title="{{ . }}"{{ end -}}
|
|
{{- if $u.IsAbs }} rel="external"{{ end -}}
|
|
>
|
|
{{- with .Text | safeHTML }}{{ . }}{{ end -}}
|
|
{{- if $u.IsAbs }}↗{{ end -}}
|
|
</a>
|
|
{{- /* chomp trailing newline */ -}} |