Fix links rendering extra whitespace
This commit is contained in:
parent
9e1464974e
commit
4a481c6cc0
1 changed files with 1 additions and 3 deletions
|
@ -1,6 +1,4 @@
|
||||||
{{ $icon := resources.Get "external-link.svg" }}
|
{{ $icon := resources.Get "external-link.svg" }}
|
||||||
|
|
||||||
<a href="{{ .Destination | safeURL }}" {{ if strings.HasPrefix .Destination "http" }}
|
<a href="{{ .Destination | safeURL }}" {{ if strings.HasPrefix .Destination "http" }}
|
||||||
target="_blank"{{ end }}>{{ .PlainText }}
|
target="_blank"{{ end }}>{{ .PlainText }}{{ if strings.HasPrefix .Destination "http" }}<object data="{{ $icon.Permalink }}" type="image/svg+xml"></object>{{ end -}}</a>
|
||||||
{{ if strings.HasPrefix .Destination "http" }}<object data="{{ $icon.Permalink }}" type="image/svg+xml"></object>
|
|
||||||
{{ end -}}</a>
|
|
Loading…
Add table
Reference in a new issue