-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support gitalk comment #86
Conversation
Codecov Report
@@ Coverage Diff @@
## master #86 +/- ##
==========================================
- Coverage 95.71% 93.79% -1.93%
==========================================
Files 28 28
Lines 140 145 +5
Branches 8 9 +1
==========================================
+ Hits 134 136 +2
- Misses 6 8 +2
- Partials 0 1 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also necessary to resolve conflicts in the package.json
@@ -1,25 +1,48 @@ | |||
import React from 'react'; | |||
import { graphql, StaticQuery } from 'gatsby'; | |||
import ReactDisqusComments from 'react-disqus-comments'; | |||
import md5 from 'md5'; | |||
import 'gitalk/dist/gitalk.css'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styles need to be moved to _base.scss (src/assets/scss/_base.scss)
@@ -1,25 +1,48 @@ | |||
import React from 'react'; | |||
import { graphql, StaticQuery } from 'gatsby'; | |||
import ReactDisqusComments from 'react-disqus-comments'; | |||
import md5 from 'md5'; | |||
import 'gitalk/dist/gitalk.css'; | |||
import GitalkComponent from 'gitalk/dist/gitalk-component'; | |||
|
|||
export const PureComments = ({ data, postTitle, postSlug }) => { | |||
const { | |||
siteUrl, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
siteUrl
should be replaced by url
shortname={disqusShortname} | ||
identifier={postTitle} | ||
title={postTitle} | ||
url={siteUrl + postSlug} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
siteUrl
should be replaced by url
I’m closing this pull request for now because of inactivity |
Add the support to gitalk, a Github-based comment system.