From 8801e5920185816beab0407d608f7963294d8bdc Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 15 Sep 2022 19:54:23 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=A1=8C=E7=BA=A7=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=B5=8C=E5=A5=97=E5=92=8C=E4=BA=A4=E5=8F=89?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/2911?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/file.go b/kernel/model/file.go index a49c25e96..f409586ad 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -1433,6 +1433,7 @@ func createDoc(boxID, p, title, dom string) (err error) { tree.HPath = hPath tree.ID = id tree.Root.ID = id + tree.Root.Spec = "1" updated := util.TimeFromID(id) tree.Root.KramdownIAL = [][]string{{"id", id}, {"title", html.EscapeAttrVal(title)}, {"updated", updated}} if nil == tree.Root.FirstChild {