test include

This commit is contained in:
2026-03-28 04:32:56 +00:00
parent 09b40580b0
commit f6f8e2fe81

View File

@@ -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 -}}