diff --git a/components/Disqus.jsx b/components/Disqus.jsx
deleted file mode 100644
index 16d209ea..00000000
--- a/components/Disqus.jsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from 'react';
-import { useTranslation } from 'next-i18next';
-import { DiscussionEmbed } from 'disqus-react';
-
-const Disqus = ({ shortName, config }) => {
- const { t } = useTranslation('common');
-
- return (
-
- );
-};
-
-export default Disqus;
diff --git a/components/PostPageInfo.jsx b/components/PostPageInfo.jsx
index 369c9d9b..c908b61b 100644
--- a/components/PostPageInfo.jsx
+++ b/components/PostPageInfo.jsx
@@ -5,7 +5,6 @@ import { MDXRemote } from 'next-mdx-remote';
import { useTranslation } from 'next-i18next';
import Author from './Author.jsx';
-import Disqus from './Disqus.jsx';
import Banner from './Banner.jsx';
import PostPageNav from './PostPageNav.jsx';
import ExternalLink from './ExternalLink.jsx';
@@ -15,7 +14,7 @@ const components = {
a: ExternalLink,
};
-const PostPageInfo = ({ post, disqus }) => {
+const PostPageInfo = ({ post }) => {
const { t } = useTranslation('post');
const postImage = post.image ? (
@@ -44,11 +43,6 @@ const PostPageInfo = ({ post, disqus }) => {
-
);
diff --git a/data/config.js b/data/config.js
index 349e5f59..d0f3329a 100644
--- a/data/config.js
+++ b/data/config.js
@@ -13,10 +13,6 @@ const config = {
logo: '/images/hexlet_logo.png',
favicon: '/assets/images/favicons/favicon-128.png',
author: 'Kirill Mokevnin',
- disqus: {
- ru: 'hexlet-guides',
- en: 'hexlet-guides-en',
- },
amp: {
analytics: {
metrikaCounterId: '65474386',
diff --git a/package-lock.json b/package-lock.json
index c72614af..f5bbded5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13,7 +13,6 @@
"@sentry/nextjs": "^7.17.3",
"bootstrap": "^5.1.3",
"date-fns": "^2.29.3",
- "disqus-react": "^1.1.3",
"file-loader": "^6.2.0",
"gray-matter": "^4.0.3",
"lodash.capitalize": "^4.2.1",
@@ -2254,15 +2253,6 @@
"node": ">=8"
}
},
- "node_modules/disqus-react": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/disqus-react/-/disqus-react-1.1.3.tgz",
- "integrity": "sha512-DwKdmbHTMPyhBECBeRYAPNcIqZNKMvsRiyVdF89BdmFCbZpWb7+xMj/lvAuckBSx1ilOHpTKYYyW11uodaJ6ig==",
- "peerDependencies": {
- "react": "^15.6.1 || ^16.0.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^15.6.1 || ^16.0.0 || ^17.0.0 || ^18.0.0"
- }
- },
"node_modules/doctrine": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
@@ -11240,12 +11230,6 @@
"path-type": "^4.0.0"
}
},
- "disqus-react": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/disqus-react/-/disqus-react-1.1.3.tgz",
- "integrity": "sha512-DwKdmbHTMPyhBECBeRYAPNcIqZNKMvsRiyVdF89BdmFCbZpWb7+xMj/lvAuckBSx1ilOHpTKYYyW11uodaJ6ig==",
- "requires": {}
- },
"doctrine": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
diff --git a/package.json b/package.json
index c94b034c..c1699055 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,6 @@
"@sentry/nextjs": "^7.17.3",
"bootstrap": "^5.1.3",
"date-fns": "^2.29.3",
- "disqus-react": "^1.1.3",
"file-loader": "^6.2.0",
"gray-matter": "^4.0.3",
"lodash.capitalize": "^4.2.1",
diff --git a/pages/[name].js b/pages/[name].js
index 91c02020..b4e6ecce 100644
--- a/pages/[name].js
+++ b/pages/[name].js
@@ -16,14 +16,6 @@ const Post = ({ post, languageMarkup }) => {
return null;
}
- const disqus = {
- short_name: cfg.disqus[locale],
- config: {
- language: locale,
- title: post.title,
- identifier: post.name,
- },
- };
return (
{
>
-
+
);
};
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index f8a2a4bf..1dd6b715 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -36,15 +36,5 @@
"title": "Privacy Policy",
"url": "https://hexlet.io/pages/privacy"
}
- },
- "disqus": {
- "noscript": {
- "prefix": "Please enable JavaScript to view the",
- "link": "comments powered by Disqus."
- },
- "link": {
- "prefix": "comments powered by",
- "logo": "Disqus"
- }
}
}
diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json
index aed55250..4f64f665 100644
--- a/public/locales/ru/common.json
+++ b/public/locales/ru/common.json
@@ -40,15 +40,5 @@
"title": "Политика конфиденциальности",
"url": "https://ru.hexlet.io/pages/privacy"
}
- },
- "disqus": {
- "noscript": {
- "prefix": "Please enable JavaScript to view the",
- "link": "comments powered by Disqus."
- },
- "link": {
- "prefix": "comments powered by",
- "logo": "Disqus"
- }
}
}