mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 数据历史文档支持只读可视化预览 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")
|
title := tree.Root.IALAttr("title")
|
||||||
|
if "" == title {
|
||||||
|
title = "Untitled"
|
||||||
|
}
|
||||||
content := tree.Root.Content()
|
content := tree.Root.Content()
|
||||||
p := strings.TrimPrefix(doc, util.HistoryDir)
|
p := strings.TrimPrefix(doc, util.HistoryDir)
|
||||||
p = filepath.ToSlash(p[1:])
|
p = filepath.ToSlash(p[1:])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue