🐛 Prevent whitespace at start of render-link

Fixes #695
This commit is contained in:
James Panther
2023-11-05 10:11:04 +11:00
parent 54c39a1297
commit 79a66d4fda
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
{{ $link := .Destination }}
{{ $isRemote := strings.HasPrefix $link "http" }}
{{- $link := .Destination -}}
{{- $isRemote := strings.HasPrefix $link "http" -}}
{{- if not $isRemote }}
{{ $url := urls.Parse .Destination }}
{{ if $url.Path }}