mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-03 18:19:39 +01:00 
			
		
		
		
	Merge pull request #95 from vzhou842/disqus-url-prop
Fixed url prop bug for <ReactDisqusComments />
This commit is contained in:
		@@ -4,7 +4,7 @@ import ReactDisqusComments from 'react-disqus-comments';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const PureComments = ({ data, postTitle, postSlug }) => {
 | 
					export const PureComments = ({ data, postTitle, postSlug }) => {
 | 
				
			||||||
  const {
 | 
					  const {
 | 
				
			||||||
    siteUrl,
 | 
					    url,
 | 
				
			||||||
    disqusShortname
 | 
					    disqusShortname
 | 
				
			||||||
  } = data.site.siteMetadata;
 | 
					  } = data.site.siteMetadata;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -17,7 +17,7 @@ export const PureComments = ({ data, postTitle, postSlug }) => {
 | 
				
			|||||||
      shortname={disqusShortname}
 | 
					      shortname={disqusShortname}
 | 
				
			||||||
      identifier={postTitle}
 | 
					      identifier={postTitle}
 | 
				
			||||||
      title={postTitle}
 | 
					      title={postTitle}
 | 
				
			||||||
      url={siteUrl + postSlug}
 | 
					      url={url + postSlug}
 | 
				
			||||||
    />
 | 
					    />
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,6 +43,7 @@ export const query = graphql`
 | 
				
			|||||||
      id
 | 
					      id
 | 
				
			||||||
      html
 | 
					      html
 | 
				
			||||||
      fields {
 | 
					      fields {
 | 
				
			||||||
 | 
					        slug
 | 
				
			||||||
        tagSlugs
 | 
					        tagSlugs
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      frontmatter {
 | 
					      frontmatter {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user