findmyway / blog-py

MIT License
0 stars 0 forks source link

Migrate from Disqus #3

Open VincentTam opened 4 years ago

VincentTam commented 4 years ago

Hi, this is the maintainer of @staticmanlab, a public GitLab instance of Staicman. Here's some shortcomings of some common third-party commenting systems.

  1. Disqus and Isso contain a 3rd-party script to be loaded during page rendering. The code block for loading each of them shows that the static comments are not rendered as static HTML code. This hinders search engines from grabbing the comments, which are part of the site's content. As a result, that's not search-engine friendly.
  2. Disqus is difficult to access for non programmers in the PRC, as reported in https://github.com/Huxpro/huxpro.github.io/issues/258#issuecomment-430842480.
  3. Gitment, Gitalk and Utterance support only GitHub, and they require user login before commenting. This can scare away many non programmers from leaving a comment to your posts. Besides, comments are part of the site's static content, not a software package problem. As a result, using GtiHub issues for comment storage is wrong in principle and bad in terms of SEO.
  4. Commento is not free as in free beer. For a personal blog with small traffic, you might find a monthly fee of $5 too expensive.

To see more reasons for migrating from Disqus, you may view

  1. https://victorzhou.com/blog/replacing-disqus/
  2. https://old.reddit.com/r/programming/comments/b9022a/switching_off_of_disqus_reduced_my_page_weight_by/
  3. https://medium.com/remys-blog/ejecting-disqus-4120e9985823
  4. https://fatfrogmedia.com/delete-disqus-comments-wordpress/

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.

Some tutorials for configuring Staticman with GitHub/GitLab repo:

  1. 利用StaticMan为博客添加评论功能
  2. 使用Statiman给博客提供评论功能(二)

:information_source: There're many ways to Rome, say JAM Stack, Jekyll AWS comments, etc.

findmyway commented 4 years ago

Thanks, I'll evaluate it later.