mirror of
https://github.com/andrewgioia/blog.git
synced 2024-12-22 10:29:57 +00:00
Fixes weird link render formatting
This commit is contained in:
parent
4cb3eebd4d
commit
ce7bbd5d1d
@ -1,4 +1 @@
|
||||
<a href="{{ .Destination | safeURL }}"
|
||||
{{ with .Title}} title="{{ . }}"{{ end }}
|
||||
{{ if strings.HasPrefix .Destination "http" }}
|
||||
target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }} </a>
|
||||
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }} </a>
|
Loading…
Reference in New Issue
Block a user