mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 16:49:49 +01:00 
			
		
		
		
	feat(comments): replace disqus component
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| import React from "react"; | ||||
| import ReactDisqusComments from "react-disqus-comments"; | ||||
|  | ||||
| import { DiscussionEmbed } from "disqus-react"; | ||||
|  | ||||
| import { useSiteMetadata } from "@/hooks"; | ||||
|  | ||||
| @@ -16,11 +17,13 @@ const Comments: React.FC<Props> = ({ postTitle, postSlug }: Props) => { | ||||
|   } | ||||
|  | ||||
|   return ( | ||||
|     <ReactDisqusComments | ||||
|     <DiscussionEmbed | ||||
|       shortname={disqusShortname} | ||||
|       identifier={postTitle} | ||||
|       title={postTitle} | ||||
|       url={url + postSlug} | ||||
|       config={{ | ||||
|         url: url + postSlug, | ||||
|         identifier: postTitle, | ||||
|         title: postTitle, | ||||
|       }} | ||||
|     /> | ||||
|   ); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user