🎨 数据历史文档支持只读可视化预览 https://github.com/siyuan-note/siyuan/issues/5735
This commit is contained in:
parent
320353d51a
commit
bffc33c278
1 changed files with 3 additions and 0 deletions
|
@ -550,6 +550,9 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
|
|||
}
|
||||
|
||||
title := tree.Root.IALAttr("title")
|
||||
if "" == title {
|
||||
title = "Untitled"
|
||||
}
|
||||
content := tree.Root.Content()
|
||||
p := strings.TrimPrefix(doc, util.HistoryDir)
|
||||
p = filepath.ToSlash(p[1:])
|
||||
|
|
Loading…
Add table
Reference in a new issue