hugo-dusk icon indicating copy to clipboard operation
hugo-dusk copied to clipboard

Add staticman support

Open BloggerBust opened this issue 6 years ago • 2 comments
trafficstars

Add support for comments from an instance of Staticman. See my series on static comment support - Staticman with GitHub and Zeit Now

BloggerBust avatar Apr 20 '19 15:04 BloggerBust

Note: this PR includes PR #29

BloggerBust avatar Apr 20 '19 15:04 BloggerBust

I appreciate your effort and thanks for sharing your tweak. IMHO, this PR can be improved in many ways:

  1. Move form POST URL to a separate JavaScript file to avoid sραm.
  2. Refactor the parameters in config.toml and replace the api_version parameter with git_provider to encourage users to use Staticman's v3 API scheme (and in case of a GitHub repo: GitHub App authorization method), which is recommended in Staicman's updated quick start guide.
  3. Provide relevant documentation and/or sample config param in config.toml and README for ease of use. You may view popular themes with Staticman support that I've contributed to as examples, e.g. Beautiful Hugo, Minimal Mistakes, Beautiful Jekyll.
  4. (Optional, but suggested against spam) Add support for reCAPTCHA v2: users can choose to enable it or not
  5. (Optional) Support nested comments

https://github.com/gyorb/hugo-dusk/blob/ed4615dff9f400942d229fa6cadcd58bbe3840d0/layouts/partials/staticman/create-comment.html#L1

VincentTam avatar Mar 01 '21 09:03 VincentTam