Update page template, post-template

This commit is contained in:
alxshelepenok
2020-11-01 03:47:19 +03:00
parent a0d1159934
commit 1c7e4a2cfc
4 changed files with 3146 additions and 4871 deletions

View File

@@ -16,10 +16,10 @@ const Layout = ({
children,
title,
description,
socialImage
socialImage = ''
}: Props) => {
const { author, url } = useSiteMetadata();
const metaImage = typeof socialImage !== 'undefined' ? socialImage : author.photo;
const metaImage = socialImage || author.photo;
const metaImageUrl = url + metaImage;
return (