diff options
| author | Factiven <[email protected]> | 2023-07-16 22:35:39 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-07-16 22:35:39 +0700 |
| commit | 1eee181e219dfd993d396ac3169e7aad3dd285eb (patch) | |
| tree | 23fe54e9c3f8810f3ac9ab6b29070b4f0d4b9d20 /components/disqus.js | |
| parent | removed console.log (diff) | |
| download | moopa-1eee181e219dfd993d396ac3169e7aad3dd285eb.tar.xz moopa-1eee181e219dfd993d396ac3169e7aad3dd285eb.zip | |
Update v3.6.4
- Added Manga page with a working tracker for AniList user
- Added schedule component to home page
- Added disqus comment section so you can fight on each other (not recommended)
- Added /id and /en route for english and indonesian subs (id route still work in progress)
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; |