PageDataContext #
Where the page being processed comes from. Generator-only; never sent to the browser.
Fields #
originPageOrigin
file for a Markdown file in srcDir, plugin for a page added by pages().
fileoptionalstring
Absolute path of the Markdown source file. Missing for a plugin page.
sourcePathstring
Source path relative to srcDir, for example /guide/intro.md. A plugin
page has the <plugin name><page path> the core generates.
Full type signature
TypeScript
interface PageDataContext {
origin: PageOrigin
file?: string
sourcePath: string
}

Comments