diff --git a/docs/digging-deeper/customization.md b/docs/digging-deeper/customization.md index be9bf142863..9b13b511089 100644 --- a/docs/digging-deeper/customization.md +++ b/docs/digging-deeper/customization.md @@ -171,7 +171,7 @@ But you only have to specify the username to get all the other data. author: mr_hyde ``` -If you want to override some of the data for a specific post, you can do so in the front matter. Additionally, the front matter method is great for guest authors or one-off posts. +If you want to override the the data for a specific post, you can do so in the front matter. Additionally, the front matter method is great for guest authors or one-off posts. ### Footer diff --git a/packages/framework/tests/Feature/PostsAuthorIntegrationTest.php b/packages/framework/tests/Feature/PostsAuthorIntegrationTest.php index d6ee4467e49..b543682d358 100644 --- a/packages/framework/tests/Feature/PostsAuthorIntegrationTest.php +++ b/packages/framework/tests/Feature/PostsAuthorIntegrationTest.php @@ -132,7 +132,7 @@ public function testAllPostAuthorFieldsCanBeSetInFrontMatter() ], $page->author->toArray()); } - public function testConfiguredPostAuthorFieldsCanBeCustomizedInFrontMatter() + public function testConfiguredPostAuthorFieldsCanBeOverriddenInFrontMatter() { Config::set('hyde.authors', [ 'mr_hyde' => Author::create( @@ -198,12 +198,7 @@ public function testConfiguredPostAuthorFieldsCanBeCustomizedInFrontMatter() 'username' => 'mr_hyde', 'name' => 'Dr. Jekyll', 'website' => 'https://hydephp.com', - 'bio' => 'The mysterious author of HydePHP', - 'avatar' => 'avatar.png', - 'socials' => [ - 'twitter' => '@HydeFramework', - 'github' => 'hydephp', - ], + // The original fields are not overwritten ], $page->author->toArray()); }