theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.15k stars 2.05k forks source link

The index page not dispaly visiting counts by using busuanzi? #428

Closed ShuaiJunlan closed 5 years ago

ShuaiJunlan commented 6 years ago

screenshot from 2018-09-28 09-23-46 Website addressing: https://shuaijunlan.github.io/

sli1989 commented 6 years ago

Yeah, when using busuanzi, the view count would not be displayed in the index page.

https://github.com/theme-next/hexo-theme-next/blob/9ec34d34a24fd83e289248c17e40966b33ac6e87/layout/_macro/post.swig#L224-L232

ShuaiJunlan commented 6 years ago

@sli1989 Will the bug be fixed in the next release version of hexo-theme-next ?

sli1989 commented 6 years ago

yeah, it's a easy implement.

or u can just delete not is_index and to test.

ShuaiJunlan commented 6 years ago

Ok , thanks.

ShuaiJunlan commented 6 years ago

@sli1989 According to your suggestion, I just delete not is_index and, but the view count only displays in the first entry in every index page, and the view count displayed in the index page is different from the detail page. You can visit my website https://shuaijunlan.github.io/ for more detail.

Index page screenshot screenshot from 2018-09-28 17-10-48

Detail page screenshot screenshot from 2018-09-28 17-20-18 Could you help me?

maple3142 commented 6 years ago

I guess that it might be your home page's view count.

ShuaiJunlan commented 6 years ago

@maple3142 So, how to fix the bug?

ChungZH commented 6 years ago

436

ShuaiJunlan commented 6 years ago

@ChungZH At the home page of https://chungzh.cn/ , it also doesn't display the visiting counts.

ChungZH commented 6 years ago

你刷新几次试试

sli1989 commented 6 years ago

注意:不蒜子为保持极简,暂不支持在站点文章摘要列表中(如首页)逐个显示每篇文章的阅读次数,如果您非常需要这一功能,可以留言。根据需要程度再考虑开发相应的功能。

Note: If you don't want to keep it very simple, you can't display the number of readings of each article one by one in the summary list of the site (such as the home page). If you need this feature very much, you can leave a message. Consider developing the corresponding features as needed.

Seems this function is not supported by the official.


Only when the local end is tested, there is a problem with the statistics. After the deployment, the display is normal.

ShuaiJunlan commented 6 years ago

@sli1989 If the function is supported, it will be better, I think.

stevenjoezhang commented 5 years ago

@shuaijunlan Seems the maintainer of busuanzi doesn't have a plan to add this feature in a short time. You can use leancloud counter instead.