mirror of https://github.com/andrewgioia/blog.git
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