private static void ClassifyAnchors(ContentItem startsFrom, ContentItem current, bool parallelRoot, Web.Tree tree) { var ancestors = N2.Find.ListParents(current, startsFrom, true); if (parallelRoot && ancestors.Contains(startsFrom)) ancestors.Remove(startsFrom); tree.LinkWriter((n, w) => n.Current.Link().Class(n.Current == current ? "current" : ancestors.Contains(n.Current) ? "trail" : "").WriteTo(w)); }