jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
6.92k stars 1.25k forks source link

侧边栏最新评论一直显示正在加载中 #786

Closed XiaochengYe closed 2 years ago

XiaochengYe commented 2 years ago

网上找的 Valine 的例子,但如果评论系统使用 gitalkutterances ,不需要使用到 leancloud ,应该怎么配置才正确哦?只改 _config.butterfly.ymlgithub_issueshexo c & g & s 之后一直显示正在加载中。

comments:
  # Up to two comments system, the first will be shown as default
  # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus
  use: # Valine,Disqus
    - gitalk
    - utterances  
  text: true # Display the comment name next to the button
  # lazyload: The comment system will be load when comment element enters the browser's viewport.
  # If you set it to true, the comment count will be invalid
  lazyload: false
  count: true # Display comment count in post's top_img
  card_post_count: false # Display comment count in Home Page
# Aside widget - Newest Comments
newest_comments:
  enable: true
  sort_order: # Don't modify the setting unless you know how it works
  limit: 6
  storage: 10 # unit: mins, save data to localStorage
  avatar: true
  leancloud:
    enable: false
    appId: # leancloud application app id
    appKey: # leancloud application app key
    serverURL: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
    default_avatar: mp # mp/identicon/monsterid/wavatar/retro/robohash/blank
  github_issues:
    enable: true
    repo: XiaochengYe/comments
  disqus:
    enable: false
    forum:
    api_key:

正在加载中.jpg

XiaochengYe commented 2 years ago

如果参考其他主题 amazing ,butterfly 主题好像没找到 themes/amazing/source/js/comment-issue-data.js 来配置最新评论

jerryc127 commented 2 years ago

你为什么不看主题文档 却去参考其它主题的?

自己 f12 看控制台 报什么错

XiaochengYe commented 2 years ago

你为什么不看主题文档 却去参考其它主题的?

自己 f12 看控制台 报什么错

可是在f12里面改了只是显示变了,主题配置是不变的。

jerryc127 commented 2 years ago
  1. 你这个是旧版本的,评论名首字母要大写
  2. f12 看 console 查看报错啊 截图 不然我不知道你出什么问题
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.