An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Creating a dailynote template supports doc attributes https://github.com/siyuan-note/siyuan/issues/10698
Daniel5c6be798f4a5
diff --git a/kernel/model/file.go b/kernel/model/file.goindex 4a1021222a..53b7300a0d 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -1125,12 +1125,15 @@ func CreateDailyNote(boxID string) (p string, existed bool, err error) {for _, c := range children {tree.Root.AppendChild(c)}++ // Creating a dailynote template supports doc attributes https://github.com/siyuan-note/siyuan/issues/10698templateIALs := 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-") {tree.Root.SetIALAttr(k, v)}}+tree.Root.SetIALAttr("updated", util.CurrentTimeSecondsStr())if err = indexWriteJSONQueue(tree); nil != err {return