MarkdownContentOptions Pennington.Infrastructure
Options for a markdown content source.
Properties
BasePageUrlstring- Default:
"/"URL prefix prepended to routes generated from this source. ContentPathstring- Default:
"Content"Filesystem path to the directory containing markdown files. ExcludePathsSystem.Collections.Immutable.ImmutableArray<string>- Default:
ImmutableArray<string>.EmptyRelative subpaths (fromContentPath) to skip during discovery and content copying. Set this on a broad catch-all source to carve out a subtree that is owned by a more specific markdown source registered nearby. SeeMarkdownContentServiceOptions.ExcludePathsfor matching semantics. SectionLabelstring?- Default:
nullDefault section label applied when front matter does not specify one.
Pennington.Infrastructure.MarkdownContentOptions
namespace Pennington.Infrastructure;
/// Options for a markdown content source.
public class MarkdownContentOptions
{
/// URL prefix prepended to routes generated from this source.
public string BasePageUrl { get; set; } = "/";
/// Filesystem path to the directory containing markdown files.
public string ContentPath { get; set; } = "Content";
/// Relative subpaths (from ContentPath) to skip during discovery and content copying. Set this on a broad catch-all source to carve out a subtree that is owned by a more specific markdown source registered nearby. See MarkdownContentServiceOptions.ExcludePaths for matching semantics.
public ImmutableArray<string> ExcludePaths { get; set; } = ImmutableArray<string>.Empty;
/// Default section label applied when front matter does not specify one.
public string? SectionLabel { get; set; }
}