🎨 Improve push reload doc info

This commit is contained in:
Daniel 2024-11-16 20:06:27 +08:00
parent 6a869e3544
commit 93b687a407
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -88,6 +88,10 @@ func refreshDocInfo0(tree *parse.Tree, size uint64) {
docInfo := map[string]interface{}{
"rootID": tree.ID,
"name": tree.Root.IALAttr("title"),
"alias": tree.Root.IALAttr("alias"),
"name1": tree.Root.IALAttr("name"),
"memo": tree.Root.IALAttr("memo"),
"bookmark": tree.Root.IALAttr("bookmark"),
"size": size,
"hSize": humanize.BytesCustomCeil(size, 2),
"mtime": mTime.Unix(),