Skip to content

Commit

Permalink
Fix documented discrepancy against actuality as changes are not merged
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 9, 2024
1 parent 33d786b commit ba1c18b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/digging-deeper/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function testAllPostAuthorFieldsCanBeSetInFrontMatter()
], $page->author->toArray());
}

public function testConfiguredPostAuthorFieldsCanBeCustomizedInFrontMatter()
public function testConfiguredPostAuthorFieldsCanBeOverriddenInFrontMatter()
{
Config::set('hyde.authors', [
'mr_hyde' => Author::create(
Expand Down Expand Up @@ -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());
}

Expand Down

0 comments on commit ba1c18b

Please sign in to comment.