Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Creating a dailynote template supports doc attributes https://github.com/siyuan-note/siyuan/issues/10698

Daniel04bbcc6eed6d
diff --git a/kernel/model/file.go b/kernel/model/file.go
index 53b7300a0d..2e1a236639 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)
}
}