feat(content-blog): allow authors list to contain images only (#6416)

* feat(content-blog): allow authors list to contain images only

* adjust styles

* fix

* fix

* mention in docs

* fix wording
This commit is contained in:
Joshua Chen 2022-01-20 22:08:18 +08:00 committed by GitHub
parent d506bca12d
commit 4e69c052d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 90 additions and 8 deletions

View file

@ -21,7 +21,7 @@ const BlogPostFrontMatterAuthorSchema = Joi.object({
url: URISchema,
imageURL: Joi.string(),
})
.or('key', 'name')
.or('key', 'name', 'imageURL')
.rename('image_url', 'imageURL', {alias: true});
const FrontMatterAuthorErrorMessage =