继刚
继刚
应该可以的吧?不过需要将Render Gitment[](https://github.com/imsun/gitment#3-render-gitment)中的 ```js id: 'Your page ID', // optional ``` 更换为域名不相关的就行啦吧? 也就是说这个ID一样的评论都认为是一个。。😂
我是用的这种:[Gitment/Gitalk自动初始化](https://madordie.github.io/post/blog-gitment-auto-setup/)中的MD5😂
来个自动化的:[gitment自动初始化](https://madordie.github.io/post/blog-gitment-auto-setup/) 主要是做了2点: - 自动初始化(注意token的保存。。) - 使用`md5(window.location.pathname)`作为KEY,以保证50字符
可以修改一下这里: ``` var gitment = new {{CommentsClass}}({ - id: document.location.href, + id: md5(window.location.pathname), owner: '{{ theme.gitment.github_user }}', repo: '{{ theme.gitment.github_repo }}', ``` 将其使用`window.location.pathname`处理。 这个详细的 在[Gitment/Gitalk自动初始化](https://madordie.github.io/post/blog-gitment-auto-setup/)中除了这个配置,还带了个脚本😂
昨天按照 @Draveness 的思路改了一番😂 由于我的文章很多链接都比较长,所以十之八九都`Validation Failed`,所以按照 #116 的提议将URL的path部分MD5了一下,顺便解决了锚点问题。 另外发现脚本多次运行会创建多个isuse😂 然后也改了一下。。 详细的细节放在了这里:[gitment自动初始化](https://madordie.github.io/post/blog-gitment-auto-setup/#more)
> you should use `&&` instead of `|` I think (execute commands in a row instead of piping output) Thank you for your reminder, I have updated
Since I can't build the project, I re-add `MobileDevice.framework` to the project.
> 建议换codable 了. 量好大 😭
@pantaopt @crazypoo 这样修改语意变了吧? ```swift (lldb) po self is Metadata.Class true (lldb) po self is Metadata.Class.Type false ```
> 反正能用就是了@madordie 这个函数直接`return nil` 也是可以编译不报错的呀