sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

Enable comments on posts #20

Open sc0ttj opened 5 years ago

sc0ttj commented 5 years ago

Use Disqus (or similar)

sc0ttj commented 5 years ago

Also:

sc0ttj commented 5 years ago

Disqus would be best - most popular, biggest community, most likely to get comments ..

Then gitment would be nice.. Looks nice.. Seems lightweight, easy.

sc0ttj commented 5 years ago

Here are two good alternatives to Disqus, more lightweight, seem nice:

https://commento.io/ - looks great https://posativ.org/isso/

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. Isso contains a 3rd-party script to be loaded during page rendering. The above code block 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.

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.

sc0ttj commented 5 years ago

Thanks for the information @VincentTam, I will look into it..

I would definitely prefer something that automated the adding of comments to the page itself, so that they were embedded as HTML, like any other content on the page, so Staticmanlab seems ideal.

I will have a go at implementing it at some point in the future 👍