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

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