From fe8052d2b79e6831efcc627888ac8dd169c3b46c Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 3 Nov 2024 11:12:05 +0800 Subject: [PATCH] :art: Improve the backlink panel breadcrumb and block sorting https://github.com/siyuan-note/siyuan/issues/13008 --- kernel/model/backlink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go index 07f44314a..0ea7fb25d 100644 --- a/kernel/model/backlink.go +++ b/kernel/model/backlink.go @@ -207,7 +207,7 @@ func buildBacklink(refID string, refTree *parse.Tree, keywords []string, luteEng dom := renderBlockDOMByNodes(renderNodes, luteEngine) blockPaths := []*BlockPath{} - if (nil != n.Parent && ast.NodeDocument != n.Parent.Type && nil != n.Parent.Parent && ast.NodeDocument != n.Parent.Parent.Type) || nil != treenode.HeadingParent(n) { + if (nil != n.Parent && ast.NodeDocument != n.Parent.Type) || 0 != treenode.HeadingLevel(n) { // 仅在多于一层时才显示面包屑,这样界面展示更加简洁 // The backlink panel no longer displays breadcrumbs of the first-level blocks https://github.com/siyuan-note/siyuan/issues/12862 // Improve the backlink panel breadcrumb and block sorting https://github.com/siyuan-note/siyuan/issues/13008