<% function layoutDiv() { var el = ''; if (page.breadcrumb === false) { return el; } var home_title = __("btn.home"); if (theme.breadcrumb && theme.breadcrumb.home) { if (theme.breadcrumb.home === 'config.title') { home_title = config.title; } else if (theme.breadcrumb.home === 'config.author') { home_title = config.author; } else if (theme.breadcrumb.home !== 'home') { home_title = theme.breadcrumb.home; } } if (page.layout === "post") { var firstCat = ""; if (page.categories && page.categories.length > 0) { firstCat = page.categories.data[0].name; } el += '
'; el += '
'; el += ''; // 作者 var author = null if (theme.authors) { if (page.author?.length > 0 && theme.authors[page.author] != null) { author = theme.authors[page.author] } else { author = theme.default_author } } el += '
'; if (author) { let link = `${author.name}` el += `${__("meta.created_author", link)}` } else { el += `${__("meta.created")}` } // 发布日期 el += ` `; // 更新日期 el += ` ${__("symbol.comma") + __("meta.updated")}  `; el += '
'; el += '
'; el += '
'; } else if (page.layout === "wiki" && page.wiki && page.wiki.length > 0) { el += '
'; el += '
'; el += ''; // 更新日期 el += '
'; el += ` ${__("meta.updated")}  `; el += '
'; el += '
'; const repo = page.repo || proj?.repo if (repo) { el += `
${repo} 0stars 0forks
`; } el += '
'; } else if (page.title || page.seo_title) { el += `
`; } return el; } %> <%- layoutDiv() %>