From 4b3eeae69938ef5a8213e582ed393915198d1b07 Mon Sep 17 00:00:00 2001 From: Victor Zhou Date: Thu, 7 Feb 2019 15:08:12 -0500 Subject: [PATCH] Fixed url prop bug for --- src/components/Post/Comments/Comments.js | 4 ++-- src/templates/post-template.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 {