From 4c4ce9a547e8a52a658a9b67b41f5fb23deadd4b Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 22 Feb 2021 14:31:49 +0800 Subject: [PATCH] fix breadcrumb --- layout/_partial/main/navbar/breadcrumb.ejs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/_partial/main/navbar/breadcrumb.ejs b/layout/_partial/main/navbar/breadcrumb.ejs index 0bf0522..e428f32 100644 --- a/layout/_partial/main/navbar/breadcrumb.ejs +++ b/layout/_partial/main/navbar/breadcrumb.ejs @@ -22,7 +22,11 @@
<%- __('btn.home') %> - <%- __('btn.wiki') %> + <% if (page.menu_id && theme.sidebar.menu[page.menu_id] && theme.sidebar.menu[page.menu_id].url) { %> + <%- __(theme.sidebar.menu[page.menu_id].title) %> + <% } else { %> + <%- __('btn.wiki') %> + <% } %> <% site.pages.filter(function (p) { %> <% return p.layout == 'index' && p.title && p.wiki && p.wiki.includes(page.wiki) %> <% }).limit(1).each(function(p) { %>