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:])