Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

remove disqus #662

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions components/Disqus.jsx

This file was deleted.

8 changes: 1 addition & 7 deletions components/PostPageInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -15,7 +14,7 @@ const components = {
a: ExternalLink,
};

const PostPageInfo = ({ post, disqus }) => {
const PostPageInfo = ({ post }) => {
const { t } = useTranslation('post');

const postImage = post.image ? (
Expand Down Expand Up @@ -44,11 +43,6 @@ const PostPageInfo = ({ post, disqus }) => {
</span>
<Author name={post.author} url={post.author_url} />
</div>
<section>
<div id="comments">
<Disqus shortName={disqus.short_name} config={disqus.config} />
</div>
</section>
</div>
</div>
);
Expand Down
4 changes: 0 additions & 4 deletions data/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 1 addition & 9 deletions pages/[name].js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<DefaultLayout
title={post.title}
Expand All @@ -34,7 +26,7 @@ const Post = ({ post, languageMarkup }) => {
>
<LanguageMarkup languageMarkup={languageMarkup} />
<MicrometricArticles post={post} />
<PostPageInfo post={post} disqus={disqus} />
<PostPageInfo post={post} />
</DefaultLayout>
);
};
Expand Down
10 changes: 0 additions & 10 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
10 changes: 0 additions & 10 deletions public/locales/ru/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Loading