Skip to content

Commit

Permalink
Merge pull request #158 from nunocoracao/157-links-rendering-with-ext…
Browse files Browse the repository at this point in the history
…ra-white-space

removed extra whitespace from links
  • Loading branch information
nunocoracao authored Oct 25, 2022
2 parents 9cb99c0 + 89ab364 commit 3d7ac72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
{{ .Text | safeHTML }}
</a>
{{ .Text | safeHTML }}</a>

0 comments on commit 3d7ac72

Please sign in to comment.