Skip to content

Commit

Permalink
adjusting links so we dont get spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
almithani committed Oct 29, 2024
1 parent 3030620 commit a3d3532
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
{{- $url := .Destination -}}
<a href="{{ $url }}"{{ if strings.HasPrefix $url "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>
{{ .Text | safeHTML }}
</a>
{{- $url := .Destination -}}<a href="{{ $url }}"{{ if strings.HasPrefix $url "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>

0 comments on commit a3d3532

Please sign in to comment.