blob: ee15b98ebec0e430674713e6bafb0e5249c75e9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { DiscussionEmbed } from "disqus-react";
require("dotenv").config();
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;
|