Skip to content

Commit d1927e5

Browse files
committed
Update blog post documentation for new author system
1 parent 931f429 commit d1927e5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/creating-content/blog-posts.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,23 @@ author: mr_hyde
150150

151151
```yaml
152152
author:
153+
# These are used in the default author templates
153154
name: "Mr. Hyde"
154155
username: mr_hyde
155156
website: https://twitter.com/HydeFramework
157+
158+
# These are not used in the default author templates, but can be used in your custom views
159+
bio: "The mysterious author of HydePHP"
160+
avatar: avatar.png
161+
socials:
162+
twitter: "@HydeFramework"
163+
github: "hydephp"
156164
```
157165

158-
When specifying an array you don't need all the sub-properties. The example just shows all the supported values.
159-
Array values here will override all the values in the `authors` config entry, if one exists.
166+
167+
When using an array, you don't need to include all properties. Specified values will override the corresponding entries in the `authors` config.
168+
169+
Note: Author usernames are automatically normalized (converted to lowercase with spaces replaced by underscores).
160170

161171
### Image
162172

0 commit comments

Comments
 (0)