Skip to content

Commit

Permalink
docs: check for parent_enterprise in Breadcrumbs (#6458)
Browse files Browse the repository at this point in the history
  • Loading branch information
huguestennier authored Oct 2, 2024
1 parent 0b9e36b commit fac0eaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/themes/v2/layout/page.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% const isEnterpriseTheme = theme.tier === "enterprise" %>
<% const pageContainsHeadings = page.content.includes("<h2") %>
<% const tocPageTypes = page.type === "guide" || page.type === "blog" || page.type === "templates" || page.type === "tags" %>

Expand All @@ -9,7 +10,7 @@
<div class="content-grid">
<div class="content-markdown">
<% if(page.type && page.parent !== undefined) { %>
<%- breadcrumb({pageType: page.type, parentPage: page.parent, currentPage: page.title, parentPageExtension: page.parent_page_extension }) %>
<%- breadcrumb({pageType: page.type, parentPage: isEnterpriseTheme && page.parent_enterprise ? page.parent_enterprise : page.parent, currentPage: page.title, parentPageExtension: page.parent_page_extension }) %>
<% } %>
<% if (!page.hide_frontmatter_title && page.title.trim()) { %>
<%- partial("component/heading", {text: page.title, size: "XLarge", tag: "h1", customClass: "home-page-title"}) %>
Expand Down

0 comments on commit fac0eaf

Please sign in to comment.