mirror of
https://github.com/kremalicious/blog.git
synced 2025-01-03 02:15:08 +01:00
fix SEO component
This commit is contained in:
parent
1b91d3d290
commit
4f3de419e1
@ -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}`
|
||||
|
Loading…
Reference in New Issue
Block a user