mirror of
https://github.com/andrewgioia/blog.git
synced 2024-12-23 02:39:55 +00:00
Fixes weird link render formatting
This commit is contained in:
parent
4cb3eebd4d
commit
ce7bbd5d1d
@ -1,4 +1 @@
|
|||||||
<a href="{{ .Destination | safeURL }}"
|
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }} </a>
|
||||||
{{ 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