Skip to content
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

Install disqus on every page #1

Open
atilacamurca opened this issue Feb 21, 2019 · 1 comment
Open

Install disqus on every page #1

atilacamurca opened this issue Feb 21, 2019 · 1 comment

Comments

@atilacamurca
Copy link
Owner

References

@VincentTam
Copy link

VincentTam commented Jun 25, 2019

Hi, this is the maintainer of @staticmanlab, a public GitLab instance of Staicman. Here's some shortcomings of some popular 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 leads to suboptimal SEO.
  2. 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.
  3. 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.

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.

Disqus and GitHub are proprietary, whereas, Staticman is a MIT-licensed NodeJS app. It supports GitLab, which is open source. The offical instances and mine run on Heroku dynos, but you might build your own web server.

Staticman v2 error
Image: The official public production instance of Staticman running on Heroku dyno
Source: eduardoboucas/staticman#296 (comment)

ℹ️ There're many ways leading to Rome, like JAM Stack, Netlify Comments, etc.

See also:

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants