Skip to content

Commit

Permalink
Support custom layout matter
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 4, 2024
1 parent a589f40 commit 6fec51c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/BladedownPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ class BladedownPage extends MarkdownPage
{
public static string $template = 'hyde::layouts/page';
public static string $fileExtension = '.blade.md';

/** @experimental Implements RFC https://github.com/hydephp/develop/pull/1517 */
public function getBladeView(): string
{
return $this->matter->get('extends') ?? parent::getBladeView();
}
}

0 comments on commit 6fec51c

Please sign in to comment.