From 3954d4188d37956608351947e817b668beafed6b Mon Sep 17 00:00:00 2001 From: Damiaan Peeters Date: Wed, 18 Nov 2020 18:01:28 +0100 Subject: [PATCH] do not show getting started sub-pages --- OurUmbraco/Documentation/DocumentationUpdater.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OurUmbraco/Documentation/DocumentationUpdater.cs b/OurUmbraco/Documentation/DocumentationUpdater.cs index 449aafcb04..1fb8450d42 100644 --- a/OurUmbraco/Documentation/DocumentationUpdater.cs +++ b/OurUmbraco/Documentation/DocumentationUpdater.cs @@ -89,6 +89,9 @@ private SiteMapItem GetFolderStructure(DirectoryInfo dir, string rootPath, int l foreach (var child in dir.GetDirectories().Where(x => x.Name != "images" && x.Name != ".git" && x.Name != ".github" && x.Name != "Old-Courier-versions")) list.Add(GetFolderStructure(child, rootPath, level + 1)); + // hide old getting started subpages + list = list.Where(i => (i.Path.StartsWith("/Getting-Started/") == true && i.Level == 2) == false).ToList(); + siteMapItem.Directories = list.OrderBy(x => x.Sort).ToList(); return siteMapItem;