We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69e0165 commit 8814cc5Copy full SHA for 8814cc5
1 file changed
layouts/_shortcodes/relURL.html
@@ -11,5 +11,9 @@
11
{{- if $res -}}
12
{{- if $absolute }}{{ $res.Permalink }}{{ else }}{{ $res.RelPermalink }}{{ end -}}
13
{{- else -}}
14
- {{- if $absolute }}{{ $path | absURL }}{{ else }}{{ $path | relURL }}{{ end -}}
+ {{- if eq $path "/" -}}
15
+ {{- if $absolute }}{{ "" | absURL }}{{ else }}{{ "" | relURL }}{{ end -}}
16
+ {{- else -}}
17
+ {{- if $absolute }}{{ $path | absURL }}{{ else }}{{ $path | relURL }}{{ end -}}
18
+ {{- end -}}
19
{{- end -}}
0 commit comments