Skip to content

Commit

Permalink
Add Markdown page support for getting Blade view from front matter
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva authored Feb 1, 2024
1 parent 2802dfd commit 6cd5155
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/framework/src/Pages/MarkdownPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ class MarkdownPage extends BaseMarkdownPage
public static string $sourceDirectory = '_pages';
public static string $outputDirectory = '';
public static string $template = 'hyde::layouts/page';

public function getBladeView(): string
{
return $this->matter->get('extends') ?? parent::getBladeView();
}
}

0 comments on commit 6cd5155

Please sign in to comment.