-
Notifications
You must be signed in to change notification settings - Fork 88
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
能集成第三方评论功能吗? #40
Comments
Disqus 是可行的喔,我的Blog就有加入Disqus評論了。 |
Hi, this is the maintainer of @staticmanlab, a public GitLab instance of Staicman. Here's some shortcomings of the commenting systems mentioned above.
You may avoid these problems by switching to Staticman, which makes use of GitHub/GitLab Pull/Merge Requests instead of issues. Under Staticman's model, static comments are YML/JSON files stored in the remote GitHub/GitLab repo (usually under data/comments, configurable through the path parameter in root-level staticman.yml), and through a static blog generator (Jekyll/Hugo/etc), the stored data are rendered as part of the content. This gives a total ownership of a static site's comments. |
@VincentTam Wow, that's great! Do you have any plan to add it to this theme? |
@zxdawn Not for now, but you may try porting from the diff between the Hugo theme Huginn: Bascially, you just need to adjust the HTML form field names so that they match those of |
@VincentTam Thank you for your advice! I found this tutorial which you commented below.
Then I got this error when rebuilding the site:
|
@zxdawn Thanks for trying. Honestly speaking, I've no idea why such error occurs. From the error message, you may focus on ℹ️ Note that Staticman v3 is already available. Since it's under active development, many users have reported in the app's GitHub issues. It's a distributed commenting system, meaning that everyone may run his/her own API instance, which might adopt some of the unmerged PR's. To get you started in minutes, I'm reusing my comment template. 💬 This theme's comment supportℹ️ The following lines in your root-level site config file is responsible for comment support. 🙍♀️ Inconvenience of comments stored in databases😦 I'm not familiar with the actual procedures with FB comments. On my old GitHub pages + Octopress site, i used Disqus, but URL refactoring can lead to disappearance of comments. Changing the URL is complicated. Having LaTeX inside comments is impossible... Users don't own their comments. ❓ Why go static?🌐 Static comments on my current Hugo + Staticman + KaTeX GitLab pages: 💡 What does "owning my comments" mean? You can do whatever you want with it. 🔢 Static comments are treated like the site's static content, so you can use KaTeX for math display. ✔️ I ported others Staticman integration code to some Jekyll and Hugo templates. 👷♂️ Staticman Configurations for GitHub/GitLab📧 Please don't hesitate to ping me on GitHub/GitLab/leave a comment on my blog/send me an email to ask for help. 💪 Staticman's job is to get HTML form data to the GitHub/GitLab repo, and it won't care whether GitHub/GitLab Pages are used or not. |
🔧 updatePlz set up your own Staticman instance ! For a guide, you may see https://github.com/pacollins/hugo-future-imperfect-slim/wiki/staticman.yml, which is inspired from https://hajekj.net/2020/04/15/staticman-setup-in-app-service/. |
比如
Gitment
Disqus
LiveRe
The text was updated successfully, but these errors were encountered: