mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
🚧 WIP: add params.taskList to support custom task lists
This commit is contained in:
@@ -688,6 +688,12 @@ enableEmoji = true
|
||||
# syntax: <type> = <icon>
|
||||
[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: <sign> = <icon>
|
||||
[params.taskList]
|
||||
# tip = "fa-regular fa-lightbulb"
|
||||
|
||||
# FixIt 0.2.12 | NEW PanguJS config
|
||||
[params.pangu]
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user