MarkdownContentPage
classNamespace: MyLittleContentEngine.Models
A page generated from Markdown, along with its FrontMatter and Table of Contents.
Declaration
public class MarkdownContentPage
Inheritance
object
→ MarkdownContentPage<TFrontMatter>
Propertys
FrontMatter
propertypublic required TFrontMatter FrontMatter { get; init; }
The metadata of the page defined in the front matter section.
Returns:
TFrontMatter MarkdownContentPage<TFrontMatter>.FrontMatter
MarkdownContent
propertypublic 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
propertypublic 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
propertypublic 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
propertypublic 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
propertypublic 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