diff options
Diffstat (limited to 'components/disqus.js')
| -rw-r--r-- | components/disqus.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/components/disqus.js b/components/disqus.js new file mode 100644 index 0000000..b276995 --- /dev/null +++ b/components/disqus.js @@ -0,0 +1,17 @@ +import { DiscussionEmbed } from "disqus-react"; + +const DisqusComments = ({ post }) => { + const disqusShortname = "your_disqus_shortname"; + const disqusConfig = { + url: post.url, + identifier: post.id, // Single post id + title: `${post.title} - Episode ${post.episode}`, // Single post title + }; + + return ( + <div> + <DiscussionEmbed shortname={disqusShortname} config={disqusConfig} /> + </div> + ); +}; +export default DisqusComments; |