From 85483839787521b06fe57e4ee6b453f02265f508 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 13 Oct 2023 14:51:00 +0200 Subject: [PATCH] Update BladeMatter documentation --- docs/getting-started/front-matter.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/getting-started/front-matter.md b/docs/getting-started/front-matter.md index 590f2ca6e2a..a14503cfbd8 100644 --- a/docs/getting-started/front-matter.md +++ b/docs/getting-started/front-matter.md @@ -71,3 +71,6 @@ To create BladeMatter, you simply use the default Laravel Blade `@php` directive ``` It will then be available through the global `$page` variable, `$page->matter('title')`. +Hyde will of course also use the data for contextual autoconfiguration in the same way it would with Markdown and use the value as the page title. + +Another idea is to use `@php($navigation = ['hidden' => true])` if you want to hide a page from the navigation. The opportunities are limitless!