make()
Create a new page instance. Static alias for the constructor.
BaseMarkdownPage::make(string $identifier, Hyde\Markdown\Models\FrontMatter|array $matter, Hyde\Markdown\Models\Markdown|string $markdown): static
__construct()
Construct a new page instance.
$page = new BaseMarkdownPage(string $identifier, Hyde\Markdown\Models\FrontMatter|array $matter, Hyde\Markdown\Models\Markdown|string $markdown): void
markdown()
Return the document's Markdown object.
$page->markdown(): Hyde\Markdown\Models\Markdown
compile()
Compile the page into static HTML.
$page->compile(): string // The compiled HTML for the page.
save()
Save the Markdown page object to disk by compiling the front matter array to YAML and writing the body to the file.
$page->save(): $this