Skip to content

Commit 228dd96

Browse files
committed
change to .Path
1 parent 079c3fa commit 228dd96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/show-on-path.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/}}
1212

1313
{{ $filepath := .Get "filepath" }}
14-
{{ $currentPath := .Page.RelPermalink }}
14+
{{ $currentPath := .Page.Path }}
1515

1616
{{ $fullFilepath := printf "%s%s" .Site.BaseURL $filepath }}
1717
{{ $fullCurrentPath := printf "%s%s" .Site.BaseURL $currentPath }}

0 commit comments

Comments
 (0)