ageitgey / amplify

A Jekyll html theme in the vague style of Medium.com built using Google AMP
https://cdn.ampproject.org/c/s/ageitgey.github.io/amplify/2016/03/08/example-post.html
Other
1.87k stars 166 forks source link

comment system #33

Open samazgor opened 5 years ago

samazgor commented 5 years ago

how to integrate Disqus or other comment systems?

Taboo69 commented 5 years ago

??

On Thu, Feb 28, 2019, 2:26 PM Sam Azgor notifications@github.com wrote:

how to integrate Disqus or other comment systems?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ageitgey/amplify/issues/33, or mute the thread https://github.com/notifications/unsubscribe-auth/ARITS4f9EX_qErh9wUJA3SMEGox38e8Cks5vSEmHgaJpZM4bXxS8 .

ageitgey commented 5 years ago

You would just paste in the Disqus code on the page template under the content here: https://github.com/ageitgey/amplify/blob/master/_layouts/post.html#L12

aicochow commented 5 years ago

my blog added Disqus https://gfw-blog.netlify.com/2018/05/11/cse-amp.html

VincentTam commented 5 years ago

Hi, this is the maintainer of @staticmanlab, a public GitLab instance of Staicman. Here's some shortcomings of the commenting systems mentioned above.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

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.


To have a taste of Staticman in minutes, you might try Beautiful Hugo. Otherwise, you may consider cloning any one of my demo sites on Framagit.