Skip to content

Commit 9007cb3

Browse files
committed
Card: Revert first slash error
1 parent 70e308f commit 9007cb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

layouts/shortcodes/card.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
{{- /* Build the url */ -}}
3636
{{ $url := printf "%s%s" .Page.Permalink $titleUrl }}
3737
{{ if eq (substr $titleUrl 0 1) "/" }}
38-
{{ $suggestedUrlFix := substr $titleUrl 1 }}
39-
{{ errorf "Please do not start the param 'titleUrl' with a forward slash. Got: '%s', use '%s' instead." $titleUrl $suggestedUrlFix }}
38+
{{ $url = printf "%s%s" .Site.BaseURL (substr $titleUrl 1) }}
4039
{{ else if (strings.Contains $titleUrl "https") }}
4140
{{ $url = $titleUrl }}
4241
{{ end }}

0 commit comments

Comments
 (0)