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 f68d5c9 commit 292cc91Copy full SHA for 292cc91
layouts/shortcodes/show-on-path.html
@@ -13,8 +13,8 @@
13
{{ $filepath := .Get "filepath" }}
14
{{ $currentPath := .Page.RelPermalink }}
15
16
-{{ $fullFilepath = printf "%s%s" .Site.BaseURL $filepath }}
17
-{{ $fullCurrentPath = printf "%s%s" .Site.BaseURL $filepath }}
+{{ $fullFilepath := printf "%s%s" .Site.BaseURL $filepath }}
+{{ $fullCurrentPath := printf "%s%s" .Site.BaseURL $filepath }}
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