Skip to content

Commit

Permalink
Merge pull request #95 from vzhou842/disqus-url-prop
Browse files Browse the repository at this point in the history
Fixed url prop bug for <ReactDisqusComments />
  • Loading branch information
alxshelepenok authored Mar 3, 2019
2 parents 5f4e5e9 + 4b3eeae commit 2933b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Post/Comments/Comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ReactDisqusComments from 'react-disqus-comments';

export const PureComments = ({ data, postTitle, postSlug }) => {
const {
siteUrl,
url,
disqusShortname
} = data.site.siteMetadata;

Expand All @@ -17,7 +17,7 @@ export const PureComments = ({ data, postTitle, postSlug }) => {
shortname={disqusShortname}
identifier={postTitle}
title={postTitle}
url={siteUrl + postSlug}
url={url + postSlug}
/>
);
};
Expand Down
1 change: 1 addition & 0 deletions src/templates/post-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const query = graphql`
id
html
fields {
slug
tagSlugs
}
frontmatter {
Expand Down

0 comments on commit 2933b1f

Please sign in to comment.