<% function layoutDiv() { const wikiObject = theme.wiki.tree[page.wiki] var el = '' // 文档列表页 el += `` const wikiIndexPageURL = url_for(theme.site_tree.index_wiki.base_dir) el += `${__("btn.wiki")}` if (wikiObject) { // 文档项目名 const wikiHomePageURL = url_for(wikiObject.homepage?.path); if (wikiHomePageURL != wikiIndexPageURL) { el += `` el += `${wikiObject.name || wikiObject.title}` } } return el } %> <%- layoutDiv() %>