1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-28 00:27:58 +02:00

fix SEO component

This commit is contained in:
Matthias Kretschmann 2018-09-25 00:34:12 +02:00
parent 1b91d3d290
commit 4f3de419e1
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -49,7 +49,9 @@ class SEO extends Component {
description = postMeta.description
? postMeta.description
: post.excerpt
image = postMeta.image.childImageSharp.fluid.src
image = postMeta.image
? postMeta.image.childImageSharp.fluid.src
: siteMeta.author.avatar.childImageSharp.resize.src
postURL = `${siteMeta.url}${slug}`
} else {
title = `${siteMeta.title} ¦ ${siteMeta.tagline}`