Skip to content

Commit

Permalink
Merge pull request #69 from jeffschoner/remove-link-newline
Browse files Browse the repository at this point in the history
Remove terminal newline in link template
  • Loading branch information
dataCobra authored Jul 31, 2021
2 parents ae48663 + 6779752 commit 2862989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ collaboration of others.
* [Jörg Thalheim](https://github.com/Mic92)
* [David Kaufmann](https://github.com/davidkaufmann)
* [Sarath Chandra Mekala](https://github.com/sarathmekala)
* [Jeff Schoner](https://github.com/jeffschoner)
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | htmlUnescape }}</a>
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | htmlUnescape }}</a>

0 comments on commit 2862989

Please sign in to comment.