🎨 Creating a dailynote template supports the doc icon https://github.com/siyuan-note/siyuan/issues/12416
This commit is contained in:
parent
07c1048fac
commit
a17015dfdc
1 changed files with 1 additions and 1 deletions
|
@ -1253,7 +1253,7 @@ func CreateDailyNote(boxID string) (p string, existed bool, err error) {
|
|||
// Creating a dailynote template supports doc attributes https://github.com/siyuan-note/siyuan/issues/10698
|
||||
templateIALs := parse.IAL2Map(templateTree.Root.KramdownIAL)
|
||||
for k, v := range templateIALs {
|
||||
if "name" == k || "alias" == k || "bookmark" == k || "memo" == k || strings.HasPrefix(k, "custom-") {
|
||||
if "name" == k || "alias" == k || "bookmark" == k || "memo" == k || "icon" == k || strings.HasPrefix(k, "custom-") {
|
||||
tree.Root.SetIALAttr(k, v)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue