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
This plugin an integration of disqus-php-api, which is another Disqus proxy similar to DisqusJS, with some additional features such as commenting, liking, sending pictures rather than only viewing comments as what DisqusJS does.
Installation
$ npm install hexo-disqus-php-api
Configuration
In Hexo_config.yml:
disqusapi:
enable: trueapi: # Your server endpointforum: # Your disqus shortnamemode: 2timeout: 2000emojipreview: truerelatedtype: Relatedcdn:
css: https://cdn.jsdelivr.net/gh/KaitoHH-forked-repo/disqus-php-api@1.1.2/dist/iDisqus.min.cssjs: https://cdn.jsdelivr.net/gh/KaitoHH-forked-repo/disqus-php-api@1.1.2/dist/iDisqus.min.js
cdn CDN of the required css and js files. Leave it blank if you want to directly load from server side.
The meaning of the other options is available at disqus-php-api, including how to deploy the PHP server, so simply refer to this repo.
Make sure turn off any VPN or proxy before visiting this website. Otherwise, you can only see the original Disqus.
Compatibility
The plugin has been tested on Hexo NexT v7.7.2, and it relies on the improved theme_inject feature, so it may not work with other themes. However, any PRs of porting the plugin to other themes are welcomed.