Skip to content

Commit

Permalink
Update BladeMatter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 13, 2023
1 parent 56a0b30 commit 8548383
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/getting-started/front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

0 comments on commit 8548383

Please sign in to comment.