将 Recaptcha 插件安装到 Jekyll 生成的站点中
我正在尝试将 Ambethia recaptcha 插件安装到 jekyll 生成的网站中,该网站使用 Liquid 模板生成表单。由于该网站不是在 Rails 上运行,因此我在翻译需要放置的内容时遇到了一些困难。
有人可以建议吗?
I'm trying to install the Ambethia recaptcha plugin into a jekyll-generated site that uses Liquid templating to generate forms. Since the site is not running on Rails, I'm having a bit of difficulty translating what needs to be put where.
Can anyone advise?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
b/c 验证码不可能需要服务器端代码,而且 jekyll 生成的网站是完全静态的。 (这里不计算javascript)
It's impossible b/c recaptcha requires server-side code, and
jekyll
-generated sites are completely static. (javascript not counts here)如果您想添加验证码来“过滤掉”垃圾评论,我建议您尝试一下disqus。
我相信有插件可以将其与 jekyll 集成(例如, octopress 带有 disqus 集成),但是 将它们包含在您的网站中的代码非常简单。
If you wanted to add recaptcha to "filter out" spam comments, I suggest you give disqus a try.
I believe there are plugins to integrate it with jekyll (for example, octopress comes with disqus integration) but the code to include them in your site is really simple.