We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292cc91 commit c4eeeb3Copy full SHA for c4eeeb3
layouts/shortcodes/show-on-path.html
@@ -14,7 +14,7 @@
14
{{ $currentPath := .Page.RelPermalink }}
15
16
{{ $fullFilepath := printf "%s%s" .Site.BaseURL $filepath }}
17
-{{ $fullCurrentPath := printf "%s%s" .Site.BaseURL $filepath }}
+{{ $fullCurrentPath := printf "%s%s" .Site.BaseURL $currentPath }}
18
19
{{/* Remove trailing slash from both paths for consistent comparison */}}
20
{{ $normalizedFilepath := cond (strings.HasSuffix $fullFilepath "/") (substr $filepath 0 (sub (len $filepath) 1)) $filepath }}
0 commit comments