Skip to content

【问题】:无法显示博客总访问量和访客数 #930

@chyyl

Description

@chyyl

检查清单

  • 已经搜索过,没有发现类似 issue。
  • 已经搜索过主题文档,没有发现相关内容。
  • 已经尝试使用过最新版,问题依旧存在。

主题版本

5.x

复现地址

https://yucuiyingqing.github.io/blog/new/

问题描述

页面底部无法显示博客总访问量和访客数

配置文件

主题配置文件

sidebar:
  widget_library:
    webinfo:
      class: webinfo
      display: [desktop]
      header:
        icon: fa-solid fa-award
        title: 站点信息
      type:
        article:
          enable: true
          text: '文章数目:'
          unit: ''
        runtime:
          enable: true
          data: '2024/08/14'    # 填写建站日期
          text: '已运行时间:'
          unit: ''
        wordcount:
          enable: true
          text: '本站总字数:'   # 需要启用 wordcount
          unit: ''
        visitcounter:
          siteuv:
            enable: true
            text: '本站访客数:'
            unit: ''
          sitepv:
            enable: true
            text: '本站总访问量:'
            unit: ''
        lastupd:
          enable: true
          friendlyShow: true    # 更友好的时间显示
          text: '最后活动时间:'
          unit: ''

环境信息

node.js & npm

v22.13.1
11.1.0

package.json

hexo-site@0.0.0 C:\Users\Administrator\Desktop\github\site\blog\new
+-- aplayer@1.10.1
+-- hexo-deployer-git@4.0.0
+-- hexo-generator-archive@2.0.0
+-- hexo-generator-category@2.0.0
+-- hexo-generator-index@4.0.0
+-- hexo-generator-json-content@4.2.3
+-- hexo-generator-tag@2.0.0
+-- hexo-renderer-ejs@2.0.0
+-- hexo-renderer-marked@7.0.0
+-- hexo-renderer-stylus@3.0.1
+-- hexo-server@3.0.0
+-- hexo-theme-landscape@1.0.0
+-- hexo-theme-volantis@5.8.0
+-- hexo-wordcount@6.0.1
`-- hexo@7.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    help使用遇到问题(报错、样式与示例不一致等)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions