From bffc33c2782a0c58ce5a1d455cc44a8e87924c8b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 30 Aug 2022 21:23:17 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=94=AF=E6=8C=81=E5=8F=AA=E8=AF=BB=E5=8F=AF?= =?UTF-8?q?=E8=A7=86=E5=8C=96=E9=A2=84=E8=A7=88=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/5735?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/history.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/model/history.go b/kernel/model/history.go index 4e5f8f16a..f162afa75 100644 --- a/kernel/model/history.go +++ b/kernel/model/history.go @@ -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:])