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;