Open bigwolftime opened 5 years ago
当 gitment
的 id 过长(大概超过 50 字符)时初始化评论的话会出现类似 Validation failed
的错误提示,id 字段类似于一篇博客的唯一标识,网络上有的建议用标题或者日期作为 id 的值。
id: decodeURI(window.location.pathname).substring(window.location.pathname.length - 49,window.location.pathname.length),
//我使用的办法是:反向截取字符串,最多 49 个字符。
https://bwt.gitlab.io/blog/jekyll/update/2016/03/24/welcome-to-jekyll.html