From 6cd5155d98f8665c9c0fbaa58f45dbe5222d36ee Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Thu, 1 Feb 2024 16:47:49 +0100 Subject: [PATCH] Add Markdown page support for getting Blade view from front matter --- packages/framework/src/Pages/MarkdownPage.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/framework/src/Pages/MarkdownPage.php b/packages/framework/src/Pages/MarkdownPage.php index d7320f865b2..541068b6dd7 100644 --- a/packages/framework/src/Pages/MarkdownPage.php +++ b/packages/framework/src/Pages/MarkdownPage.php @@ -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(); + } }