From 4018752dc8ea00a852c8dda27892a571dd6d2994 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 29 Nov 2018 16:15:58 +0000 Subject: [PATCH] fix(project): projects not listing child pages Fix #800 --- layouts/project/single.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/project/single.html b/layouts/project/single.html index 1b4dcfc8..cd40859f 100644 --- a/layouts/project/single.html +++ b/layouts/project/single.html @@ -20,7 +20,8 @@ {{ $project = .File.TranslationBaseName }} {{ end }} {{ if eq $project "index" }}{{/* Check if using dir-based page bundles. */}} - {{ $project = delimit (last 1 (split (substr .Dir 0 -1) "/")) "" }} + {{ $dir_sep := substr .Dir -1 1 }} + {{ $project = delimit (last 1 (split (substr .Dir 0 -1) $dir_sep)) "" }} {{ end }} {{ $project_path := .RelPermalink }}