Commit b6cc928

HPCesia <me@hpcesia.com>
2025-02-15 12:13:13
fix: delete unused config item
1 parent fa0f8e9
Changed files (2)
src/types/config.ts
@@ -339,33 +339,7 @@ export type ArticleConfig = {
    *
    * 阅读时间的配置。
    */
-  readingTime: {
-    /**
-     * Whether to enable the reading time.
-     *
-     * 是否启用阅读时间。
-     */
-    enable: boolean;
-    /**
-     * The words per minute of the reading time.
-     *
-     * 阅读时间的每分钟字数。
-     */
-    wordsPerMinute: {
-      /**
-       * The words per minute of CJK characters.
-       *
-       * CJK 字符的每分钟阅读字数。
-       */
-      cjk: number;
-      /**
-       * The words per minute of non-CJK words.
-       *
-       * 非 CJK 单词的每分钟阅读字数。
-       */
-      nonCjk: number;
-    };
-  };
+  readingTime: boolean;
 };
 
 export type SearchConfig = {
src/config.ts
@@ -129,13 +129,7 @@ export const footerConfig: FooterConfig = {
 export const articleConfig: ArticleConfig = {
   toc: true,
   wordCount: true,
-  readingTime: {
-    enable: true,
-    wordsPerMinute: {
-      cjk: 300,
-      nonCjk: 160,
-    },
-  },
+  readingTime: true,
 };
 
 export const searchConfig: SearchConfig = {