chaooo / hexo-theme-BlueLake

A simple theme for Hexo with great performance on different devices .
MIT License
328 stars 121 forks source link

hexo g 有错误 #93

Closed laoel closed 3 years ago

laoel commented 4 years ago
ERROR D:\data-docu\laoel\nanf-aoe\laoel\laoel.github.io\themes\BlueLake\layout\base.jade:40
    38|     if config.feed
    39|       link(rel='alternate', type=feed_type, href=url_for(config.feed.path))
  > 40|     if theme.comment.gitalk.enable
    41|       link(rel='stylesheet', type='text/css', href="https://unpkg.com/gitalk/dist/gitalk.css?v=" + theme.version)
    42|     block title
    43|

Cannot read property 'gitalk' of undefined

输入hexo g 后出现上面的报错,在主题的配置文件中,配置了和没配置gitalk,都是一样会报错。 对于这个报错,应该怎么解决呢? 我当前的配置如下

Cmments
comment:
  duoshuo: #chaooo ## duoshuo_shortname
  disqus: ## disqus_shortname
  livere: ## 来必力(data-uid)
  uyan: ## 友言(uid)
  cloudTie: ## 网易云跟帖(productKey)
  changyan: ## 畅言需在下方配置两个参数,此处不填。
    appid: ## 畅言(appid)
    appkey: ##畅言(appkey)
  gitalk:
    enable: true ## If you want to use Gitment comment system please set the value to true.
    owner: laoel ## Your GitHub ID, e.g. username
    repo: laoel.github.io ## The repository to store your comments, make sure you're the repo's owner, e.g. gitalk.github.io
    client_id:  密 ## GitHub client ID, e.g. 75752dafe7907a897619
    client_secret: 密  ## GitHub client secret, e.g. ec2fb9054972c891289640354993b662f4cccc50
    admin: laoel ## Github repo owner and collaborators, only these guys can initialize github issues.
    language: zh-CN ## Language
    pagerDirection: last # Comment sorting direction, available values are last and first.
chaooo commented 4 years ago

使用gitalk需要申请 GitHub Application。