IPage

Each page data created from source files or from the system.

Properties

ContentSource

(ContentSource) : The underlining content source

SourcePathLastDirectory

(string?): The source directory of the file.

AliasesProcessed

(Collection?) : Secondary URL patterns to be used to create the url.

PagesReferences

(ConcurrentBag) : Other content that mention this content. Used to create the tags list and Related Posts section.

Parent

(IPage?) : Other content that mention this content. Used to create the tags list and Related Posts section.

Plain

(string): Plain markdown content, without HTML.

TagsReference

(List) : A list of tags, if any.

IsHome

(bool): Just a simple check if the current page is the home page

IsPage

(bool): Just a simple check if the current page is a "page"

IsSection

(bool): Just a simple check if the current page is a section page

WordCount

(int): The number of words in the main content

ContentPreRendered

(string) : The markdown content converted to HTML

Content

(string) : The processed content.

CompleteContent

(string) : Creates the output file by applying the theme templates to the page content.

OutputFormat

(string) { get; set }: The output format used

OutputFormats

(List) : All output formats of the content has

Language

(LanguageSettings) : The language of this page.

IsDefaultLanguage

(bool): True when this page is in the site's default language.

AllTranslations

(IEnumerable) : All translations of this page, including itself, in the same output format, sorted by language weight. Useful for language switchers.

Translations

(IEnumerable) : The translations of this page in other languages (excluding itself), in the same output format.

TranslationsByLanguage

(IReadOnlyDictionary<string, IPage>) : This page's translations keyed by language code (including itself), in the same output format. Handy for building a switcher over site.Languages: look up each language code and fall back to the language home when it is missing.

AlternativeOutputFormats

(IEnumerable) : The alternate output formats of this page (including itself) in the same language, e.g. the RSS or JSON representation of an HTML page.

Variants

(IEnumerable) : Every alternate representation of this logical page across all languages and all output formats (including itself). The unified variant model.

Pages

(IEnumerable) : Other content that mention this content. Used to create the tags list and Related Posts section.

RegularPages

(IEnumerable) : List of pages from the content folder.

AllOutputUrLs

(Dictionary<Uri, IOutput>) : Get all URLs related to this content.

Paginator

(Pager?) : Pagination metadata for list pages. Null when the page has fewer items than the paginate threshold.

Public Methods

PostProcess

 void PostProcess(ISite site)

Final steps of parsing the content.

Parameters:

  • site (ISite)