Skip to content

Commit 9fe0feb

Browse files
committed
Add description accessor
1 parent d6cbf19 commit 9fe0feb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/framework/src/Pages/Concerns/HydePage.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,14 @@ public function navigationMenuGroup(): ?string
397397
return $this->navigation->group;
398398
}
399399

400+
/**
401+
* Get the description of the page to use in the `<meta name="description">` tag.
402+
*/
403+
public function getDescription(): ?string
404+
{
405+
return $this->matter('description');
406+
}
407+
400408
/**
401409
* Get the canonical URL for the page to use in the `<link rel="canonical">` tag.
402410
*

0 commit comments

Comments
 (0)