diff --git a/src/components/Post/Comments/Comments.js b/src/components/Post/Comments/Comments.js index 9019853..6388763 100644 --- a/src/components/Post/Comments/Comments.js +++ b/src/components/Post/Comments/Comments.js @@ -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} /> ); }; diff --git a/src/templates/post-template.js b/src/templates/post-template.js index 03f4254..945aaa1 100644 --- a/src/templates/post-template.js +++ b/src/templates/post-template.js @@ -43,6 +43,7 @@ export const query = graphql` id html fields { + slug tagSlugs } frontmatter {