aboutsummaryrefslogtreecommitdiff
path: root/components/disqus.js
blob: b814851ef8e6fe2baddfc4f2fac188857544c78b (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.url, // Single post id
    title: `${post.title} - Episode ${post.episode}`, // Single post title
  };

  return (
    <div>
      <DiscussionEmbed shortname={disqusShortname} config={disqusConfig} />
    </div>
  );
};
export default DisqusComments;