Clean up closing brackets on templates

This commit is contained in:
2021-11-20 18:30:26 -06:00
parent 7a0757cef7
commit 919ecde4ac
5 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
<a
href="{{ .Destination | safeURL }}"
{{ with .Title}}title="{{ . }}"{{ end }}
{{ with .Title }}title="{{ . }}"{{ end }}
{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}
>
{{- .Text | safeHTML -}}
</a>
{{- print "" -}}
{{- /* This comment gets rid of the trailing newline. */ -}}