Skip to content

Commit 079c3fa

Browse files
committed
more debugging
1 parent c4eeeb3 commit 079c3fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/shortcodes/show-on-path.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
{{ $fullCurrentPath := printf "%s%s" .Site.BaseURL $currentPath }}
1818

1919
{{/* Remove trailing slash from both paths for consistent comparison */}}
20-
{{ $normalizedFilepath := cond (strings.HasSuffix $fullFilepath "/") (substr $filepath 0 (sub (len $filepath) 1)) $filepath }}
21-
{{ $normalizedCurrentPath := cond (strings.HasSuffix $fullCurrentPath "/") (substr $currentPath 0 (sub (len $currentPath) 1)) $currentPath }}
20+
{{ $normalizedFilepath := cond (strings.HasSuffix $fullFilepath "/") (substr $fullFilepath 0 (sub (len $fullFilepath) 1)) $fullFilepath }}
21+
{{ $normalizedCurrentPath := cond (strings.HasSuffix $fullCurrentPath "/") (substr $fullCurrentPath 0 (sub (len $fullCurrentPath) 1)) $fullCurrentPath }}
2222

2323
{{/* Debug output */}}
2424
<div style="border: 1px solid red; padding: 10px; margin: 10px 0; background: #ffe6e6;">

0 commit comments

Comments
 (0)