FileContentServiceOptions
Pennington.Content
Configuration for a FileContentService — the discovery source for a custom file format registered via AddContentFormat.
Properties
BasePageUrlUrlPath- URL prefix prepended to routes generated from this content directory.
ContentPathFilePath- requiredFilesystem path to the directory containing the format's source files.
ExcludePathsImmutableArray<string>- Relative paths (forward-slash, from
ContentPath) whose subtrees are skipped during discovery. Matching is case-insensitive and segment-based. FilePatternstring- Glob pattern used to enumerate source files (for example
*.cook). Formatstring- requiredFormat key stamped onto discovered items, selecting the parser and renderer.
SearchPriorityint- Relative ordering priority for this source's entries in the search index.
SectionLabelstring- Default section label applied to entries when front matter doesn't specify one.
Pennington.Content.FileContentServiceOptions
namespace Pennington.Content;
/// Configuration for a FileContentService — the discovery source for a custom file format registered via AddContentFormat.
public class FileContentServiceOptions
{
/// URL prefix prepended to routes generated from this content directory.
public UrlPath BasePageUrl { get; set; }
/// Filesystem path to the directory containing the format's source files.
public FilePath ContentPath { get; set; }
/// Relative paths (forward-slash, from ContentPath) whose subtrees are skipped during discovery. Matching is case-insensitive and segment-based.
public ImmutableArray<string> ExcludePaths { get; set; }
/// Glob pattern used to enumerate source files (for example *.cook).
public string FilePattern { get; set; }
/// Format key stamped onto discovered items, selecting the parser and renderer.
public string Format { get; set; }
/// Relative ordering priority for this source's entries in the search index.
public int SearchPriority { get; set; }
/// Default section label applied to entries when front matter doesn't specify one.
public string SectionLabel { get; set; }
}