hexo-theme-concise icon indicating copy to clipboard operation
hexo-theme-concise copied to clipboard

GitTalk问题

Open chinabosh opened this issue 5 years ago • 3 comments

comment.ejs中body: <%- JSON.stringify(post.permalink) %>, 这个连接为什么我生成的连接是http://chinabosh.github.com/2019/07/31/monkey/这样子的,而不是连接到博客的地址 以下是我的配置 git_commit: enable: true client_id: *** client_secret: *** repo: chinabosh.github.io owner: chinabosh admin: - chinabosh per_page: 10

chinabosh avatar Nov 29 '19 07:11 chinabosh

没发现有问题啊

sanonz avatar Nov 29 '19 08:11 sanonz

我想我找到原因了! 这是我原来在hexo根目录_config.yml配置

URL

If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'

url: https://chinabosh.github.com root: / permalink: :year/:month/:day/:title/ permalink_defaults:

把url改成https://chinabosh.github.io后,gitTalk生成的地址就对了,就是不知道有没有其他影响!

chinabosh avatar Nov 29 '19 09:11 chinabosh

Hi Sanonz, 谢谢你的模板教程,我的博客已经搭建了,但有个问题关于Gitalk评论功能要请教,为什么我的评论设置好后会有“Error: Validation Failed.”错误信息那,而且只有长标题的文章有,短的没有,请问你是用什么办法解决这个问题的?再次感谢了!

HermanTeng19 avatar Dec 08 '20 15:12 HermanTeng19