Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 查询嵌入块支持设置是否显示面包屑 https://github.com/siyuan-note/siyuan/issues/6184

Liang Dingab1c3669c4cd
diff --git a/kernel/model/block.go b/kernel/model/block.go
index 6d618a72e4..9c97cf902b 100644
--- a/kernel/model/block.go
+++ b/kernel/model/block.go
@@ -434,15 +434,9 @@ func getEmbeddedBlock(trees map[string]*parse.Tree, sqlBlock *sql.Block, heading
luteEngine.RenderOptions.ProtyleContenteditable = false // 不可编辑
dom := renderBlockDOMByNodes(nodes, luteEngine)
block = &Block{Box: def.Box, Path: def.Path, HPath: b.HPath, ID: def.ID, Type: def.Type.String(), Content: dom}
- defBreadCrumb := def.IALAttr("breadcrumb")
- if "" != defBreadCrumb {
- if "true" == defBreadCrumb {
- blockPaths = buildBlockBreadcrumb(def)
- }
- } else {
- if Conf.Editor.EmbedBlockBreadcrumb {
- blockPaths = buildBlockBreadcrumb(def)
- }
+ if breadcrumb {
+ blockPaths = buildBlockBreadcrumb(def)
+
}
if 1 > len(blockPaths) {
blockPaths = []*BlockPath{}