Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Seo/Seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const Seo = props => {

const title = postTitle ? `${postTitle} - ${config.shortSiteTitle}` : config.siteTitle;
const description = postDescription ? postDescription : config.siteDescription;
const image = postCover ? postCover : config.siteImage;
const url = config.siteUrl + config.pathPrefix + postSlug;
const image = postCover ? config.siteUrl + config.pathPrefix + postCover.childImageSharp.resize.src : config.siteUrl + config.pathPrefix + "/" + config.siteImage;
const url = postSlug ? config.siteUrl + postSlug : (typeof window !== 'undefined') ? config.siteUrl + window.location.pathname : config.siteUrl;

return (
<Helmet
Expand Down
2 changes: 1 addition & 1 deletion src/templates/PostTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const postQuery = graphql`
category
cover {
childImageSharp {
resize(width: 300) {
resize(width: 1200) {
src
}
}
Expand Down