[[Home|Home]] -> [[Markdown breadcrumb]] # Filepath breadcrumbs with templater This is not exactly a Publish-only thing, but useful for making your Publish content look nice with breadcrumb links! > [!bug] If you do have folder notes enabled, this will print out the final note link twice. I'm still trying to figure this one out. Insert this into your Obsidian note to have Templater print out the breadcrumbs to your current note. ```js <%* if (tp.file.folder(true).contains("/")) { %>[[<% tp.file.folder(true).replaceAll("/", "]] / [[") %>]] <%* } else { %> [[<% tp.file.folder(true) %>]] <%* } %> / [[<% tp.file.title %>]] ``` And an example of the result. ```markdown [[Home|Home]] -> [[Markdown breadcrumb navigation]] ```