MarkdownContentPage

class

Namespace: MyLittleContentEngine.Models

A page generated from Markdown, along with its FrontMatter and Table of Contents.

Declaration

public class MarkdownContentPage

Inheritance

objectMarkdownContentPage<TFrontMatter>

Propertys

FrontMatter

property
public required TFrontMatter FrontMatter { get; init; }
The metadata of the page defined in the front matter section.
Returns: TFrontMatter MarkdownContentPage<TFrontMatter>.FrontMatter

MarkdownContent

property
public required string MarkdownContent { get; init; }
The Markdown content of the page, rendered from Markdown, excluding the front matter section.
Returns: string MarkdownContentPage<TFrontMatter>.MarkdownContent

NavigateUrl

property
public required string NavigateUrl { get; init; }
The URL to use for navigation. Includes the BaseUrl of the static content section.
Returns: string MarkdownContentPage<TFrontMatter>.NavigateUrl

Outline

property
public required OutlineEntry[] Outline { get; init; }
The table of contents for the page, pulled from the Markdown using Header tags.
Returns: OutlineEntry[] MarkdownContentPage<TFrontMatter>.Outline

Tags

property
public ImmutableList<Tag> Tags { get; init; }
The tags associated with this page. Only populated when the TFrontMatter type implements IFrontMatterWithTags.
Returns: ImmutableList<Tag> MarkdownContentPage<TFrontMatter>.Tags

Url

property
public required string Url { get; init; }
The URL path where the page will be published. Derived from the file path (e.g., Content/Blog/subfolder/post-in-subfolder.md => blog/subfolder/post-in-subfolder). Used as a route parameter, e.g., "blog/{Url}".
Returns: string MarkdownContentPage<TFrontMatter>.Url