Fixed url prop bug for <ReactDisqusComments />

This commit is contained in:
Victor Zhou 2019-02-07 15:08:12 -05:00
parent d31e82a2f9
commit 4b3eeae699
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import ReactDisqusComments from 'react-disqus-comments';
export const PureComments = ({ data, postTitle, postSlug }) => {
const {
siteUrl,
url,
disqusShortname
} = data.site.siteMetadata;
@ -17,7 +17,7 @@ export const PureComments = ({ data, postTitle, postSlug }) => {
shortname={disqusShortname}
identifier={postTitle}
title={postTitle}
url={siteUrl + postSlug}
url={url + postSlug}
/>
);
};

View File

@ -43,6 +43,7 @@ export const query = graphql`
id
html
fields {
slug
tagSlugs
}
frontmatter {