RemoveTreePlaceholders<TDocument>(IEnumerable<TDocument>, string) Method
Removes tree placeholder documents (this method will not flatten a tree).
Namespace
Statiq.Common
Containing Type
IDocumentEnumerableExtensions

Syntax

public static IEnumerable<TDocument> RemoveTreePlaceholders<TDocument>(this IEnumerable<TDocument> documents, string treePlaceholderKey = "TreePlaceholder") 
    where TDocument : IDocument

Type Parameters

Name Description
TDocument

Parameters

Name Type Description
documents IEnumerable<TDocument> The documents from which to remove the placeholder documents.
treePlaceholderKey string The metadata key that identifies placeholder documents (TreePlaceholder by default).

Return Value

Type Description
IEnumerable<TDocument> The documents without placeholder documents.