From 4e2a9aeedf4f8e49f724fcbd4e4d87b770e09654 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Fri, 7 Apr 2023 09:44:38 +0800 Subject: [PATCH] fix word count issues, change to next hexo-word-count --- _config.yml | 10 ++++++++++ package-lock.json | 23 ++++++++++++++++++----- package.json | 2 +- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/_config.yml b/_config.yml index cc2e2ae..eacbdeb 100644 --- a/_config.yml +++ b/_config.yml @@ -127,6 +127,16 @@ search: content: true format: html +# Post Wordcount +# https://github.com/next-theme/hexo-word-counter +symbols_count_time: + symbols: true + time: true + total_symbols: true + total_time: true + awl: 4 # average Word Length + wpm: 275 # average words per minute + # 百度站点地图 # baidusitemap: # path: baidusitemap.xml diff --git a/package-lock.json b/package-lock.json index 8b1f470..1166c09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "hexo-tag-cloud": "2.1.*", "hexo-theme-landscape": "^0.0.3", "hexo-theme-next": "^8.15.1", - "hexo-wordcount": "^6.0.1" + "hexo-word-counter": "^0.1.0" } }, "node_modules/@sindresorhus/is": { @@ -848,6 +848,14 @@ "node": ">=0.10.0" } }, + "node_modules/cargo-cp-artifact": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/cargo-cp-artifact/-/cargo-cp-artifact-0.1.8.tgz", + "integrity": "sha512-3j4DaoTrsCD1MRkTF2Soacii0Nx7UHCce0EwUf4fHnggwiE4fbmF2AbnfzayR36DF8KGadfh7M/Yfy625kgPlA==", + "bin": { + "cargo-cp-artifact": "bin/cargo-cp-artifact.js" + } + }, "node_modules/caseless": { "version": "0.8.0", "resolved": "https://registry.npmmirror.com/caseless/-/caseless-0.8.0.tgz", @@ -5129,10 +5137,15 @@ "node": ">=12.4.0" } }, - "node_modules/hexo-wordcount": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/hexo-wordcount/-/hexo-wordcount-6.0.1.tgz", - "integrity": "sha512-tbo2P9xRWEKQmRf7+XuPjx9It1MnaE26nA+EEb2DN39gK1x+26W7Nm4Iyp4AugQjBWYYDx7OLn4gp1WFxQpQew==" + "node_modules/hexo-word-counter": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/hexo-word-counter/-/hexo-word-counter-0.1.0.tgz", + "integrity": "sha512-6HXSL2dlPuekSqWV7DevrUjGF0JgiHKGqkKSfay00JF9GmshJCLDK+AjvVrN0J1WgCbavsUGSwukyZgfW8VdSw==", + "hasInstallScript": true, + "dependencies": { + "cargo-cp-artifact": "^0.1", + "hexo-util": "2.7.0" + } }, "node_modules/highlight.js": { "version": "11.7.0", diff --git a/package.json b/package.json index 648e87c..c60b333 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,6 @@ "hexo-tag-cloud": "2.1.*", "hexo-theme-landscape": "^0.0.3", "hexo-theme-next": "^8.15.1", - "hexo-wordcount": "^6.0.1" + "hexo-word-counter": "^0.1.0" } }