mirror of
https://github.com/sergeyyarkov/devthread.ru.git
synced 2026-10-11 10:19:13 +03:00
del disqus
This commit is contained in:
parent
707b98f8a5
commit
ffcb871bde
@ -109,12 +109,6 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-plugin-disqus`,
|
||||
options: {
|
||||
shortname: `devthread`
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-plugin-react-svg',
|
||||
options: {
|
||||
|
||||
5
package-lock.json
generated
5
package-lock.json
generated
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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 (
|
||||
<>
|
||||
<SEO title={title} titleTemplate={false} keywords={keywords.join(', ')} description={description} image={`${siteUrl}${image.childImageSharp.fluid.src}`} type='article' />
|
||||
@ -90,7 +81,6 @@ const Article = ({ data: { slug, keywords, title, image, description, category,
|
||||
<h2>Комментарии</h2>
|
||||
</div>
|
||||
<div className="article-comments__content">
|
||||
<Disqus config={disqusConfig} />
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user