From 867984fda218310cc17207e2c151c0b327f2006e Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 31 Oct 2024 17:10:59 +0800 Subject: [PATCH 1/6] :tada: Feat: support Obsidian style task lists --- layouts/partials/function/checkbox.html | 9 ------ layouts/partials/function/content.html | 2 +- layouts/partials/function/task-lists.html | 38 +++++++++++++++++++++++ 3 files changed, 39 insertions(+), 10 deletions(-) delete mode 100644 layouts/partials/function/checkbox.html create mode 100644 layouts/partials/function/task-lists.html diff --git a/layouts/partials/function/checkbox.html b/layouts/partials/function/checkbox.html deleted file mode 100644 index 1b636bb4a..000000000 --- a/layouts/partials/function/checkbox.html +++ /dev/null @@ -1,9 +0,0 @@ -{{- /* Checkbox unchecked */ -}} -{{- $old := `` -}} -{{- $new := dict "Class" "fa-regular fa-square fa-fw" | partial "plugin/icon.html" -}} -{{- $content := replace . $old $new -}} - -{{- /* Checkbox checked */ -}} -{{- $old = `` -}} -{{- $new := dict "Class" "fa-regular fa-check-square fa-fw" | partial "plugin/icon.html" -}} -{{- return replace $content $old $new -}} diff --git a/layouts/partials/function/content.html b/layouts/partials/function/content.html index b232c4320..426b653c3 100644 --- a/layouts/partials/function/content.html +++ b/layouts/partials/function/content.html @@ -14,7 +14,7 @@ {{- $content = partial "function/fontawesome.html" $content -}} {{- end -}} - {{- $content = partial "function/checkbox.html" $content -}} + {{- $content = partial "function/task-lists.html" $content -}} {{- $content = partial "function/escape.html" $content -}} diff --git a/layouts/partials/function/task-lists.html b/layouts/partials/function/task-lists.html new file mode 100644 index 000000000..d33e0cf75 --- /dev/null +++ b/layouts/partials/function/task-lists.html @@ -0,0 +1,38 @@ +{{- /* Task lists rendering */ -}} +{{- /* If Hugo supports the list rendering hook, refactor this snippet. */ -}} + +{{- $iconMap := dict + " " "fa-regular fa-square" + "x" "fa-solid fa-check-square" + ">" "fa-solid fa-calendar" + "<" "fa-solid fa-calendar-check" +-}} +{{- $extendedSigns := slice -}} +{{- range $sign, $icon := $iconMap -}} + {{- $extendedSigns = $extendedSigns | append $sign -}} +{{- end -}} + +{{- /* + The basic syntax is compatible with GitHub, Obsidian, and Typora. + The basic format is as follows: + - [ ] Unchecked + - [x] Checked +*/ -}} +{{- $icon := dict "Class" (add "checkbox-icon fa-fw " (index $iconMap " ")) | partial "plugin/icon.html" -}} +{{- $content := replaceRE `
  • (.+?)
  • ` (printf `
  • %s $1
  • ` $icon) . -}} +{{- $icon := dict "Class" (add "checkbox-icon fa-fw " (index $iconMap "x")) | partial "plugin/icon.html" -}} +{{- $content = replaceRE `
  • (.+?)
  • ` (printf `
  • %s $1
  • ` $icon) $content -}} + +{{- /* + The extended syntax is compatible with Obsidian. + The extended format is as follows: + - [>] Scheduled + - [<] Rescheduled +*/ -}} +{{- range $extendedSigns -}} + {{- $class := index $iconMap . | default "fa-solid fa-check-square" -}} + {{- $icon := dict "Class" (add "checkbox-icon fa-fw " $class) | partial "plugin/icon.html" -}} + {{- $content = replaceRE (printf `
  • \[%s\] (.+?)
  • ` (htmlEscape .)) (printf `
  • %s $1
  • ` . $icon) $content -}} +{{- end -}} + +{{- return $content -}} From 8fa35387252c26b83f1eaf180a2f7c06e3cbc945 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 1 Nov 2024 15:02:01 +0800 Subject: [PATCH 2/6] :construction: WIP: add six extended formats to the task lists --- assets/css/_core/_root.scss | 4 ++- assets/css/_page/_single.scss | 32 +++++++++++++++++++++++ layouts/partials/function/task-lists.html | 29 +++++++++++++++----- 3 files changed, 57 insertions(+), 8 deletions(-) diff --git a/assets/css/_core/_root.scss b/assets/css/_core/_root.scss index dd4af56d2..20357ffa3 100644 --- a/assets/css/_core/_root.scss +++ b/assets/css/_core/_root.scss @@ -1,7 +1,7 @@ :root { // Note: Custom variable values only support SassScript inside `#{}`. - // Theme colors varibles + // Theme colors variables @each $color, $value in $theme-colors { --#{$prefix}#{$color}: #{$value}; } @@ -22,6 +22,8 @@ --#{$prefix}scrollbar-track-color: transparent; --#{$prefix}scrollbar-width: thin; --#{$prefix}scrollbar-width-legacy: 12px; + + // TODO migrate SCSS variables to CSS variables } // Dark theme diff --git a/assets/css/_page/_single.scss b/assets/css/_page/_single.scss index 8785de12e..c9c02e29f 100644 --- a/assets/css/_page/_single.scss +++ b/assets/css/_page/_single.scss @@ -230,6 +230,38 @@ ul { list-style-type: disc; + + // Task lists + li[data-task] { + list-style: none; + margin-left: -1.5rem; + } + } + + // Task lists + li[data-task] { + color: var(--#{$prefix}task-color); + .checkbox-icon { + margin-right: 0.25em; + color: var(--#{$prefix}checkbox-color); + } + } + li[data-task='x'], + li[data-task='-'] { + --#{$prefix}task-color: var(--#{$prefix}secondary); + text-decoration: line-through; + } + li[data-task='x'] { + --#{$prefix}checkbox-color: var(--#{$prefix}primary); + } + li[data-task='/'] { + --#{$prefix}task-color: var(--#{$prefix}success); + } + li[data-task='!'] { + --#{$prefix}checkbox-color: var(--#{$prefix}danger); + } + li[data-task='?'] { + --#{$prefix}checkbox-color: var(--#{$prefix}warning); } dl { diff --git a/layouts/partials/function/task-lists.html b/layouts/partials/function/task-lists.html index d33e0cf75..e5a3820aa 100644 --- a/layouts/partials/function/task-lists.html +++ b/layouts/partials/function/task-lists.html @@ -4,14 +4,20 @@ {{- $iconMap := dict " " "fa-regular fa-square" "x" "fa-solid fa-check-square" - ">" "fa-solid fa-calendar" - "<" "fa-solid fa-calendar-check" + "/" "fa-regular fa-square" + "-" "fa-solid fa-square-xmark" + "<" "fa-regular fa-calendar-plus" + ">" "fa-regular fa-calendar-minus" + "!" "fa-solid fa-circle-exclamation" + "\\?" "fa-regular fa-circle-question" -}} {{- $extendedSigns := slice -}} {{- range $sign, $icon := $iconMap -}} {{- $extendedSigns = $extendedSigns | append $sign -}} {{- end -}} +{{- /* TODO merge from config */ -}} + {{- /* The basic syntax is compatible with GitHub, Obsidian, and Typora. The basic format is as follows: @@ -19,20 +25,29 @@ - [x] Checked */ -}} {{- $icon := dict "Class" (add "checkbox-icon fa-fw " (index $iconMap " ")) | partial "plugin/icon.html" -}} -{{- $content := replaceRE `
  • (.+?)
  • ` (printf `
  • %s $1
  • ` $icon) . -}} +{{- $label := T (printf "taskList.%v" " ") -}} +{{- $content := replaceRE `
  • (.+?)
  • ` (printf `
  • %s$1
  • ` $label $icon) . -}} +{{- $label := T (printf "taskList.%v" "x") -}} {{- $icon := dict "Class" (add "checkbox-icon fa-fw " (index $iconMap "x")) | partial "plugin/icon.html" -}} -{{- $content = replaceRE `
  • (.+?)
  • ` (printf `
  • %s $1
  • ` $icon) $content -}} +{{- $content = replaceRE `
  • (.+?)
  • ` (printf `
  • %s$1
  • ` $label $icon) $content -}} {{- /* The extended syntax is compatible with Obsidian. The extended format is as follows: - - [>] Scheduled - - [<] Rescheduled + - [-] Cancelled + - [/] In Progress + - [<] Scheduled + - [>] Rescheduled + - [!] Important + - [?] Question */ -}} {{- range $extendedSigns -}} {{- $class := index $iconMap . | default "fa-solid fa-check-square" -}} {{- $icon := dict "Class" (add "checkbox-icon fa-fw " $class) | partial "plugin/icon.html" -}} - {{- $content = replaceRE (printf `
  • \[%s\] (.+?)
  • ` (htmlEscape .)) (printf `
  • %s $1
  • ` . $icon) $content -}} + {{- $sign := htmlEscape . -}} + {{- $originSign := replace . "\\" "" -}} + {{- $label := (T (printf "taskList.%v" $originSign)) | default (T (printf "taskList.%v" " ")) -}} + {{- $content = replaceRE (printf `
  • \[%s\] (.+?)
  • ` $sign) (printf `
  • %s$1
  • ` $originSign $label $icon) $content -}} {{- end -}} {{- return $content -}} From 4df8fd023e1a7b04a7e0c8d5c4acddc2ef5c7a2e Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 1 Nov 2024 15:02:37 +0800 Subject: [PATCH 3/6] :construction: WIP: add translations task lists --- i18n/de.toml | 12 ++++++++++++ i18n/en.toml | 12 ++++++++++++ i18n/es.toml | 12 ++++++++++++ i18n/fr.toml | 12 ++++++++++++ i18n/hi.toml | 12 ++++++++++++ i18n/it.toml | 12 ++++++++++++ i18n/pl.toml | 12 ++++++++++++ i18n/pt-BR.toml | 12 ++++++++++++ i18n/ro.toml | 12 ++++++++++++ i18n/ru.toml | 12 ++++++++++++ i18n/sr.toml | 12 ++++++++++++ i18n/vi.toml | 12 ++++++++++++ i18n/zh-CN.toml | 12 ++++++++++++ i18n/zh-TW.toml | 12 ++++++++++++ 14 files changed, 168 insertions(+) diff --git a/i18n/de.toml b/i18n/de.toml index fb2fa6f34..880f2b974 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Notiz" diff --git a/i18n/en.toml b/i18n/en.toml index e3ae77b3b..ae4b74042 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -181,6 +181,18 @@ warning = "Warning" caution = "Caution" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "Unchecked" +"x" = "Checked" +"-" = "Cancelled" +"/" = "In Progress" +"<" = "Scheduled" +">" = "Rescheduled" +"!" = "Important" +"?" = "Question" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Note" diff --git a/i18n/es.toml b/i18n/es.toml index 55ba8a003..611fe358e 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Nota" diff --git a/i18n/fr.toml b/i18n/fr.toml index 4a07ca56d..9df81fc03 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -181,6 +181,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Remarque" diff --git a/i18n/hi.toml b/i18n/hi.toml index 75b46b2a9..974c7305c 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "ध्यान दें" diff --git a/i18n/it.toml b/i18n/it.toml index 8c72e96f4..b26a70b1b 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Note" diff --git a/i18n/pl.toml b/i18n/pl.toml index be142e67f..3e0986f97 100644 --- a/i18n/pl.toml +++ b/i18n/pl.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Notka" diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index ceccd54dc..d1cd36236 100644 --- a/i18n/pt-BR.toml +++ b/i18n/pt-BR.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Nota" diff --git a/i18n/ro.toml b/i18n/ro.toml index 85a24a479..073ed2818 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Notă" diff --git a/i18n/ru.toml b/i18n/ru.toml index b5fd91e12..5843985ee 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Замечание" diff --git a/i18n/sr.toml b/i18n/sr.toml index ae3a6dea1..495763d36 100644 --- a/i18n/sr.toml +++ b/i18n/sr.toml @@ -182,6 +182,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Напомена" diff --git a/i18n/vi.toml b/i18n/vi.toml index ada6b9ffd..b7a38e340 100644 --- a/i18n/vi.toml +++ b/i18n/vi.toml @@ -181,6 +181,18 @@ warning = "" caution = "" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "" +"x" = "" +"-" = "" +"/" = "" +"<" = "" +">" = "" +"!" = "" +"?" = "" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "Ghi chú" diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index 7f13f6c8e..bd4bca151 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -177,6 +177,18 @@ warning = "警告" caution = "小心" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "未完成" +"x" = "已完成" +"-" = "已取消" +"/" = "进行中" +"<" = "已计划" +">" = "已重新计划" +"!" = "重要" +"?" = "问题" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "注意" diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index 53092dead..b21529400 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -177,6 +177,18 @@ warning = "警告" caution = "小心" # === GitHub Alert === +# === Task lists === +[taskList] +" " = "未完成" +"x" = "已完成" +"-" = "已取消" +"/" = "進行中" +"<" = "已計劃" +">" = "已重新計劃" +"!" = "重要" +"?" = "問題" +# === Task lists === + # === shortcodes/admonition.html === [admonition] note = "注意" From db77d49afb4aa6569466519f2d86e2fa96e2249c Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 1 Nov 2024 15:45:01 +0800 Subject: [PATCH 4/6] :construction: WIP: add params.taskList to support custom task lists --- hugo.toml | 6 ++++++ layouts/partials/function/task-lists.html | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hugo.toml b/hugo.toml index 1d268ea06..72380d2c4 100644 --- a/hugo.toml +++ b/hugo.toml @@ -688,6 +688,12 @@ enableEmoji = true # syntax: = [params.admonition] # ban = "fa-solid fa-ban" + + # FixIt 0.2.14 | NEW Task lists custom config + # See https://fixit.lruihao.cn/documentation/content-management/advanced/#custom-task-lists + # syntax: = + [params.taskList] + # tip = "fa-regular fa-lightbulb" # FixIt 0.2.12 | NEW PanguJS config [params.pangu] diff --git a/layouts/partials/function/task-lists.html b/layouts/partials/function/task-lists.html index e5a3820aa..b382da87c 100644 --- a/layouts/partials/function/task-lists.html +++ b/layouts/partials/function/task-lists.html @@ -11,13 +11,15 @@ "!" "fa-solid fa-circle-exclamation" "\\?" "fa-regular fa-circle-question" -}} +{{- /* Custom Task lists */ -}} +{{- $iconMap = site.Params.taskList | merge $iconMap -}} + +{{- /* Get the extended signs */ -}} {{- $extendedSigns := slice -}} {{- range $sign, $icon := $iconMap -}} {{- $extendedSigns = $extendedSigns | append $sign -}} {{- end -}} -{{- /* TODO merge from config */ -}} - {{- /* The basic syntax is compatible with GitHub, Obsidian, and Typora. The basic format is as follows: From f98ca2197a1b95fadde7c57f86a6c1955d923fdb Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 1 Nov 2024 17:29:56 +0800 Subject: [PATCH 5/6] :construction: WIP: modify translations for task lists --- i18n/de.toml | 2 +- i18n/en.toml | 2 +- i18n/es.toml | 2 +- i18n/fr.toml | 2 +- i18n/hi.toml | 2 +- i18n/it.toml | 2 +- i18n/pl.toml | 2 +- i18n/pt-BR.toml | 2 +- i18n/ro.toml | 2 +- i18n/ru.toml | 2 +- i18n/sr.toml | 2 +- i18n/vi.toml | 2 +- i18n/zh-CN.toml | 2 +- i18n/zh-TW.toml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/i18n/de.toml b/i18n/de.toml index 880f2b974..e5a586d04 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/en.toml b/i18n/en.toml index ae4b74042..8af9099d3 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -185,8 +185,8 @@ caution = "Caution" [taskList] " " = "Unchecked" "x" = "Checked" -"-" = "Cancelled" "/" = "In Progress" +"-" = "Cancelled" "<" = "Scheduled" ">" = "Rescheduled" "!" = "Important" diff --git a/i18n/es.toml b/i18n/es.toml index 611fe358e..25cd8fa9d 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/fr.toml b/i18n/fr.toml index 9df81fc03..a2a3b1154 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -185,8 +185,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/hi.toml b/i18n/hi.toml index 974c7305c..1ef3a376c 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/it.toml b/i18n/it.toml index b26a70b1b..048a063b4 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/pl.toml b/i18n/pl.toml index 3e0986f97..65d167073 100644 --- a/i18n/pl.toml +++ b/i18n/pl.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index d1cd36236..00ac15c86 100644 --- a/i18n/pt-BR.toml +++ b/i18n/pt-BR.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/ro.toml b/i18n/ro.toml index 073ed2818..1b572ceec 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/ru.toml b/i18n/ru.toml index 5843985ee..cdf5699e9 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/sr.toml b/i18n/sr.toml index 495763d36..820953905 100644 --- a/i18n/sr.toml +++ b/i18n/sr.toml @@ -186,8 +186,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/vi.toml b/i18n/vi.toml index b7a38e340..c29f2265c 100644 --- a/i18n/vi.toml +++ b/i18n/vi.toml @@ -185,8 +185,8 @@ caution = "" [taskList] " " = "" "x" = "" -"-" = "" "/" = "" +"-" = "" "<" = "" ">" = "" "!" = "" diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index bd4bca151..03524599f 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -181,8 +181,8 @@ caution = "小心" [taskList] " " = "未完成" "x" = "已完成" -"-" = "已取消" "/" = "进行中" +"-" = "已取消" "<" = "已计划" ">" = "已重新计划" "!" = "重要" diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index b21529400..6ee437bc1 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -181,8 +181,8 @@ caution = "小心" [taskList] " " = "未完成" "x" = "已完成" -"-" = "已取消" "/" = "進行中" +"-" = "已取消" "<" = "已計劃" ">" = "已重新計劃" "!" = "重要" From 3a5d0dee65681df453e768d9e3ad4fa1b93842c5 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 1 Nov 2024 17:41:35 +0800 Subject: [PATCH 6/6] :construction: Docs: fix typo --- hugo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo.toml b/hugo.toml index 72380d2c4..474d4595a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -689,7 +689,7 @@ enableEmoji = true [params.admonition] # ban = "fa-solid fa-ban" - # FixIt 0.2.14 | NEW Task lists custom config + # FixIt 0.3.14 | NEW Task lists custom config # See https://fixit.lruihao.cn/documentation/content-management/advanced/#custom-task-lists # syntax: = [params.taskList]