Skip to content

Commit

Permalink
Merge pull request #128 from lukeorth/issue-127-extra_space_after_links
Browse files Browse the repository at this point in the history
Fixing newline char in render-link.html render hook
  • Loading branch information
lukeorth committed Sep 10, 2023
2 parents ddf6d24 + 55e714c commit 69ea465
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
{{- /* This comment removes trailing newlines. */ -}}

0 comments on commit 69ea465

Please sign in to comment.