Hello I’m trying this method
```space-lua
yg=yg or {}
function yg.breadcrumbs(path)
local mypage = path or editor.getCurrentPage()
local parts = string.split(mypage,"/")
local crumbs = {}
for i,part in ipairs(parts) do
local current = ""
for j=1,i do
if current != "" then current=current.."/" end
current = current..parts[j]
end
table.insert(crumbs, {name = current})
end
return crumbs
end
yg.t_bc = template.new([==[/[[${name}]]]==])
function yg.bc(path)
return "[[index|🏠]]"..(template.each(yg.breadcrumbs(path),yg.t_bc))
end
But I have error message while calling the function ${yg.bc()} on my pages
Lua Error : Attempting to index a nil value
I’m sorry if this is obvious but lua is a bit confusing to me.
Edit : After resyncing /reloading / resetting the application and the client : It works ![]()
So other question : How this is possible to have this Breadcrumbs positioned above the menu and the frontmatter ?