Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

首页"阅读次数"后不显示数字 #569

Closed
5 of 11 tasks
xuejiaW opened this issue Jan 6, 2019 · 7 comments · Fixed by #570
Closed
5 of 11 tasks

首页"阅读次数"后不显示数字 #569

xuejiaW opened this issue Jan 6, 2019 · 7 comments · Fixed by #570

Comments

@xuejiaW
Copy link

xuejiaW commented Jan 6, 2019

I agree and want to create new issue


Expected behavior

首页阅读次数后显示数字

Actual behavior

文章首页显示为

阅读次数:

没有实际数字,但点进文章后显示正常

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A

NexT Information

NexT Version:

  • Latest Master branch
  • Latest Release version
  • Old version

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

NexT Configuration:

valine:
  enable: true # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version.
  appid:  XXX
  appkey:  XXX
  notify: false # mail notifier, See: https://github.com/xCss/Valine/wiki
  verify: false # Verification code
  placeholder: 匿名的!不需要注册!想说啥直接说吧!
  avatar: mm # gravatar style
  guest_info: nick,mail,link # custom comment header
  pageSize: 10 # pagination size
  visitor: true # leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html
  comment_count: false # if false, comment count will only be displayed in post page, not in home page

leancloud_visitors:
  enable: true
  app_id: XXX
  app_key: XXX
  # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
  # If you don't care about security in leancloud counter and just want to use it directly
  # (without hexo-leancloud-counter-security plugin), set `security` to `false`.
  security: false
  betterPerformance: false

Other Information

如果comment_count字段设为True,则首页评论数后无数字,阅读次数后有数字。在将comment_count设为false后,首页阅读次数后 数字就不显示了

@xuejiaW xuejiaW changed the title 首页阅读次数后不显示数字 首页"阅读次数"后不显示数字 Jan 6, 2019
@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Jan 6, 2019

valine:下面的visitor: true改成false试试,这两个功能是重复并且冲突的,有待优化

valine.visitor conflicts with leancloud_visitors

@xuejiaW
Copy link
Author

xuejiaW commented Jan 6, 2019

valine:下面的visitor: true改成false,这两个功能是重复并且冲突的,有待优化
valine.visitor conflicts with leancloud_visitors

试了下首页可以显示阅读数字了的。如果把comment_count设为True后,首页的评论数后仍是没有数字

@stevenjoezhang
Copy link
Contributor

评论加载的逻辑存在问题,现在修复了,你git pull更新一下试试

Fixed in #570

@aixiu
Copy link

aixiu commented Jan 16, 2019

@stevenjoezhang 现在更新后,默认主题不显示
image
以前是这样的:
image
现在是
image

@stevenjoezhang
Copy link
Contributor

@aixiu 你的评论系统是Valine么?你可以检查一下,是否更新到了最新的NexT,以及_config.ymlvaline:下是否设置了comment_count: true。这时应该会在所有页面上显示评论数。

@aixiu
Copy link

aixiu commented Jan 16, 2019

@stevenjoezhang 谢谢,我查看一下。是的,是By Valine

@stevenjoezhang stevenjoezhang removed their assignment Mar 4, 2019
@ivan-nginx ivan-nginx changed the title 首页"阅读次数"后不显示数字 首页"阅读次数"后不显示数字 [solved] Mar 4, 2019
anthqiu pushed a commit to anthqiu/hexo-theme-next that referenced this issue Aug 1, 2019
# By Mimi (4) and others
# Via Ivan.Nginx
* 'v6.x' of [email protected]:AntSYau/hexo-theme-next.git:
  add: details of configuration (theme-next#588)
  bugfix: make request time of leancloud saved and let concurrent requests pass (theme-next#519)
  Reorganize theme-next#576, using macro (theme-next#582)
  Edit Google Analytics reference file address (theme-next#580)
  Fix theme-next#573: [Muse & Mist] Footer is not at the bottom of the page (theme-next#574)
  Update Gitment URL to use jsDelivr CDN (theme-next#572)
  Fix theme-next#569 Valine Comment Count (theme-next#570)
  Improve styles of Gitalk & Gitment  (theme-next#568)
  Optimize the loading of comment systems (theme-next#566)

# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	_config.yml
#	layout/_macro/post.swig
#	layout/_partials/comments.swig
#	layout/_partials/github-banner.swig
#	layout/_scripts/schemes/muse.swig
#	layout/_third-party/analytics/google-analytics.swig
#	layout/_third-party/comments/disqus.swig
#	layout/_third-party/comments/gitalk.swig
#	layout/_third-party/comments/gitment.swig
#	layout/_third-party/comments/index.swig
#	layout/_third-party/comments/valine.swig
#	layout/_third-party/copy-code.swig
#	source/css/_common/components/header/github-banner.styl
#	source/css/_common/components/pages/schedule.styl
#	source/css/_common/components/post/post-reward.styl
#	source/css/_common/components/sidebar/sidebar.styl
#	source/css/_common/components/tags/note-modern.styl
#	source/css/_common/scaffolding/tables.styl

Signed-off-by: Anthony Yau <[email protected]>
@stevenjoezhang
Copy link
Contributor

这个问题看上去已经彻底解决了~

tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this issue Nov 19, 2019
@stevenjoezhang stevenjoezhang changed the title 首页"阅读次数"后不显示数字 [solved] 首页"阅读次数"后不显示数字 Mar 7, 2020
wens07 pushed a commit to wens07/hexo-theme-next that referenced this issue May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants