mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 04:32:32 +02:00
bugfix/#741 - fix type of socialImage, fix condition
This commit is contained in:
@@ -19,7 +19,7 @@ const Layout = ({
|
||||
socialImage
|
||||
}: Props) => {
|
||||
const { author, url } = useSiteMetadata();
|
||||
const metaImage = socialImage !== null ? socialImage : author.photo;
|
||||
const metaImage = socialImage.length > 0 ? socialImage : author.photo;
|
||||
const metaImageUrl = url + metaImage;
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user