This commit is contained in:
Liang Ding 2022-09-15 19:54:23 +08:00
parent 11d5a3b59f
commit 8801e59201
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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 {