blob: 724bec38c4d4072b7e6edc2940600c4d70e6a40b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { DiscussionEmbed } from "disqus-react";
const DisqusComments = ({ post }) => {
const disqusShortname = post.name || "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;
|