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)

LogicalFileNameWithoutExtension

(string?) { get; set }: The logical filename without extension and without the language suffix (e.g. hello for hello.pt-br.md). Used to build language-neutral URLs.

SourceFileNameWithoutExtension

(string?)

Language

(string) { get; set } = string.Empty: The language code of this content (e.g. en, pt-br).

TranslationKey

(string) { get; set } = string.Empty: The language-neutral logical path (directory + logical filename) shared by all translations of the same logical document.

Translations

(List) = []: All content sources that are translations of this one, including itself. Populated after the whole content tree has been scanned.

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