Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit d943fd1

Browse files
committed
Improve the content file path logged in render-link
1 parent b0533c0 commit d943fd1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎layouts/_default/_markup/render-link.html‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,7 @@
9898
{{- end }}
9999

100100
{{- /* Determine content path for warning and error messages. */}}
101-
{{- $contentPath := "" }}
102-
{{- with .Page.File }}
103-
{{- $contentPath = .Path }}
104-
{{- else }}
105-
{{- $contentPath = .Path }}
106-
{{- end }}
101+
{{- $contentPath := print .Page }}
107102

108103
{{- /* Parse destination. */}}
109104
{{- $u := urls.Parse .Destination }}

0 commit comments

Comments
 (0)