CLASS ContentSource

Content Source = front matter + raw content

Properties

FrontMatter

(FrontMatter) : Internal front matter

Title

(string?)

Section

(string?)

Type

(string?) { get; set }

Url

(string?)

Draft

(bool?)

Date

(DateTime?)

LastMod

(DateTime?)

PublishDate

(DateTime?)

ExpiryDate

(DateTime?)

Aliases

(List?)

Weight

(int)

Tags

(List?)

ResourceDefinitions

(List?) { get; set }

RawContent

(string) { get; set }

BundleType

(BundleType)

Kind

(Kind) { get; set } = Kind.single

ContentSourceToPages

(List) = []

ContentSourceParent

(ContentSource?) { get; set }

ContentSourceTags

(List) = []

Params

(Dictionary<string, object>) { get; set }

SourceRelativePath

(string) { get; set }

SourceRelativePathDirectory

(string)

Children

(HashSet) { get; set } = []: List of children content.

RawResources

(Collection?) { get; set }: List of attached resources

Public Methods

ScanForResources

public ContentSource ScanForResources(ISite site)

Scan and collect resources for this content source

Parameters:

  • site (ISite)

Returns: ContentSource