Skip to content

添加文章字数统计,可供主题调用 #7335

Open
@Liksone

Description

@Liksone

前置条件

  • 已经在 Issues 列表中搜索了相关问题。
  • 这是和 Halo 相关的特性,如果是非项目本身的问题,建议在 Discussions 提交。
  • 如果是插件和主题特性建议,请在对应的插件和主题仓库提交。

你当前使用的版本

2.20.17

描述一下此特性

开发 Halo 主题时,想为文章添加字数统计显示,查询文档无果,查询 GitHub 仓库,发现之前有过该功能:

但不知为何后来又删除了:

目前是在主题中自行实现,但还是觉得提供 ${post.wordCount} 这样的变量在后端持久化存储会更好一些。

附加信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues or PRs related to the Halo Corekind/featureCategorizes issue or PR as related to a new feature.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions