From 04bbcc6eed6d303c1eee356e3bf50e07e68eb006 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 22 Mar 2024 20:40:54 +0800 Subject: [PATCH] :art: Creating a dailynote template supports doc attributes https://github.com/siyuan-note/siyuan/issues/10698 --- kernel/model/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index 53b7300a0..2e1a23663 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -1129,7 +1129,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 || "title" == k || strings.HasPrefix(k, "custom-") { + if "name" == k || "alias" == k || "bookmark" == k || "memo" == k || strings.HasPrefix(k, "custom-") { tree.Root.SetIALAttr(k, v) } }