You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have tried gitalk plugin according to here, you'll find that several problems exists, which are:
The gitalk is rendered to the bottom of the whole page, therefore it may look like this:
There is hardly no spacing between the bottom of gitalk and the bottom of the whole page, and:
As docsify refresh pages partly while using hash mode, gitalk won't be able to refetch the actual comments under each page. As a result, readers may comment under wrong articles.
After Using This Plugin
This plugin adds a footer under gitalk, like this:
Besides, this plugin also force the browser to render gitalk each time after router change, so gitalk will show the correct comments according to different articles.
constgitalk=newGitalk({clientID: 'GitHub Application Client ID',clientSecret: 'GitHub Application Client Secret',repo: 'GitHub repo',// The repository of store comments,owner: 'GitHub repo owner',admin: ['GitHub repo owner and collaborators, only these guys can initialize github issues'],id: location.pathname,// Ensure uniqueness and length less than 50distractionFreeMode: false// Facebook-like distraction free mode})