Skip to content

Commit ba1c18b

Browse files
committed
Fix documented discrepancy against actuality as changes are not merged
1 parent 33d786b commit ba1c18b

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

docs/digging-deeper/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ But you only have to specify the username to get all the other data.
171171
author: mr_hyde
172172
```
173173
174-
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.
174+
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.
175175
176176
### Footer
177177

packages/framework/tests/Feature/PostsAuthorIntegrationTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testAllPostAuthorFieldsCanBeSetInFrontMatter()
132132
], $page->author->toArray());
133133
}
134134

135-
public function testConfiguredPostAuthorFieldsCanBeCustomizedInFrontMatter()
135+
public function testConfiguredPostAuthorFieldsCanBeOverriddenInFrontMatter()
136136
{
137137
Config::set('hyde.authors', [
138138
'mr_hyde' => Author::create(
@@ -198,12 +198,7 @@ public function testConfiguredPostAuthorFieldsCanBeCustomizedInFrontMatter()
198198
'username' => 'mr_hyde',
199199
'name' => 'Dr. Jekyll',
200200
'website' => 'https://hydephp.com',
201-
'bio' => 'The mysterious author of HydePHP',
202-
'avatar' => 'avatar.png',
203-
'socials' => [
204-
'twitter' => '@HydeFramework',
205-
'github' => 'hydephp',
206-
],
201+
// The original fields are not overwritten
207202
], $page->author->toArray());
208203
}
209204

0 commit comments

Comments
 (0)