From f6f8e2fe8181aa29d3504ca107ca044f28262d7c Mon Sep 17 00:00:00 2001 From: wompmacho Date: Sat, 28 Mar 2026 04:32:56 +0000 Subject: [PATCH] test include --- layouts/partials/include.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/include.html b/layouts/partials/include.html index a4202c2..54f5980 100644 --- a/layouts/partials/include.html +++ b/layouts/partials/include.html @@ -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 -}}