diff --git a/gatsby-config.js b/gatsby-config.js index dc7cad5..df151df 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -109,12 +109,6 @@ module.exports = { ], }, }, - { - resolve: `gatsby-plugin-disqus`, - options: { - shortname: `devthread` - } - }, { resolve: 'gatsby-plugin-react-svg', options: { diff --git a/package-lock.json b/package-lock.json index 5c259d2..bd2cf42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9071,11 +9071,6 @@ "micromatch": "^3.1.10" } }, - "gatsby-plugin-disqus": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gatsby-plugin-disqus/-/gatsby-plugin-disqus-1.2.0.tgz", - "integrity": "sha512-1Vgifach9KOCTKWmOESHbGDEAVxLwg7uJZbSyohQzBqqDzfnl42SOWJhIPCOCAtKi1GcqU4JIQiWBZmN1V0Zlg==" - }, "gatsby-plugin-firebase": { "version": "0.2.0-beta.4", "resolved": "https://registry.npmjs.org/gatsby-plugin-firebase/-/gatsby-plugin-firebase-0.2.0-beta.4.tgz", diff --git a/package.json b/package.json index 2a3271d..5cc1bae 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "firebase": "^7.16.0", "gatsby": "^2.23.12", "gatsby-image": "^2.4.12", - "gatsby-plugin-disqus": "^1.2.0", "gatsby-plugin-firebase": "^0.2.0-beta.4", "gatsby-plugin-manifest": "^2.4.17", "gatsby-plugin-netlify-cms": "^4.3.9", diff --git a/src/components/Article/Article.js b/src/components/Article/Article.js index ea679df..a174024 100644 --- a/src/components/Article/Article.js +++ b/src/components/Article/Article.js @@ -1,6 +1,5 @@ import React from 'react'; import PropTypes from 'prop-types' -import { Disqus, CommentCount } from 'gatsby-plugin-disqus' import SEO from '../SEO/SEO' import Img from "gatsby-image" import ViewCounter from '../ViewCounter/ViewCounter' @@ -18,14 +17,6 @@ const Article = ({ data: { slug, keywords, title, image, description, category, const { siteMetadata: { siteUrl } } = useSiteMetadataQuery() const { pathname } = useLocation() - console.log(siteUrl+pathname) - - let disqusConfig = { - url: `${siteUrl+pathname}`, - identifier: slug, - title: title, - } - return ( <> @@ -90,7 +81,6 @@ const Article = ({ data: { slug, keywords, title, image, description, category,

Комментарии

-