test include
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
{{- $path := .path -}}
|
||||
{{- $context := .context -}}
|
||||
|
||||
{{/* Map absolute private paths to the relative content mount point */}}
|
||||
{{- $path = replace $path "/srv/docs/private/" "private/" -}}
|
||||
|
||||
{{/* Remove leading slash if any (GetPage prefers relative-to-content paths) */}}
|
||||
{{- $path = trim $path "/" -}}
|
||||
|
||||
{{/* Try to get as a Page first (supports mounts and already handles frontmatter) */}}
|
||||
{{- $p := $context.Site.GetPage $path -}}
|
||||
{{- if $p -}}
|
||||
|
||||
Reference in New Issue
Block a user