mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-16 13:05:58 -06:00
9 lines
276 B
HTML
9 lines
276 B
HTML
<a
|
|
href="{{ .Destination | safeURL }}"
|
|
{{ with .Title }}title="{{ . }}"{{ end }}
|
|
{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}
|
|
>
|
|
{{- .Text | safeHTML -}}
|
|
</a>
|
|
{{- /* This comment gets rid of the trailing newline. */ -}}
|